Created
November 14, 2020 11:31
-
-
Save soyHouston256/a1a8febaae17fbbf777a1097398fc81e 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 function_decorate(func): | |
def worker(): | |
print('Iniciamos esta funcion') | |
func() | |
print('Finalizamos esta funcion') | |
return worker | |
@function_decorate | |
def suma(): | |
print(20+30) | |
if __name__ == '__main__': | |
suma() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment