Created
November 27, 2019 13:40
-
-
Save raphaelfruneaux/9b722978c67fc7820361e73983bc3edd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def greeting(f): | |
def wrapper(*args, **kwargs): | |
print("Hi there! Welcome!") | |
f(*args, **kwargs) | |
print("Byee!") | |
return wrapper | |
@greeting | |
def foo(): | |
print("Foo") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment