+ 1

this program is why not working???

please reply https://code.sololearn.com/cjgb45EBE3Wt/?ref=app

3rd Apr 2018, 9:46 AM
Pirate
Pirate - avatar
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())
3rd Apr 2018, 9:52 AM
Emma
0
thanks
3rd Apr 2018, 11:21 AM
Pirate
Pirate - avatar