+ 1
can't we get the same result without decorader?
I mean, it seams like everything in the nested function could just be in the normal function with - print(func()) - instead of - func()- and then return it syntax of what i said instead of returning is prob faulty but you get my question
1 Réponse
0
Yes it technically could work but it isn't pythonic. Search the zen of python.