Can anyone simplify it šŸ˜¶ ? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 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 Respostas
+ 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