+ 1
this program is why not working???
please reply https://code.sololearn.com/cjgb45EBE3Wt/?ref=app
2 Respostas
+ 1
Your indentation was wrong. Python is fussy about indentation, unlike languages like C.
def decorator(func):
def decorate():
print("--------------")
func()
print("--------------")
return decorate
def print_raw():
print("Clear Text")
decorated_function = decorator(print_raw)
print(decorated_function())
0
thanks