+ 2
Can anyone simplify it 😶 ?
def decor(func): def wrap(): print("============") func() print("============") return wrap def print_text(): print("Hello world!") decorated = decor(print_text) decorated()
4 Respuestas
+ 2
If that reference would be enough to understand then why would i ask to simplify it brother?
+ 1
You have pasted the same thing sorry.
0
Read the second part