+ 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()

19th Jul 2020, 4:01 PM
Sarfira
Sarfira - avatar
4 Answers
+ 2
If that reference would be enough to understand then why would i ask to simplify it brother?
19th Jul 2020, 4:12 PM
Sarfira
Sarfira - avatar
+ 1
You have pasted the same thing sorry.
19th Jul 2020, 4:04 PM
Sarfira
Sarfira - avatar
0
Read the second part
19th Jul 2020, 4:06 PM
Arnesh
Arnesh - avatar