0
why we need return here
def decor(func): def wrap(): print("============") func() print("============") return wrap def print_text(): print("Hello world!") decorated = decor(print_text) decorated() # why we need "return" here?
2 Respostas
+ 2
Generally , return used to return a particular value to use it in another operation
+ 2
for calling nested function 😊