- 1
Explain how The Output is: ========= hello world ========= ?
def decor(func): def wrap(): print("============") func() print("============") return wrap def print_text(): print("Hello world!") decorated = decor(print_text) decorated()
1 Answer
- 1
I didn't understand correctly. Please explain me line by line working.