0
Uppercasing - Python Core
Iâm having trouble with this Code Coach so I looked at the solution and it seems alright to me. What do I have to change in this code? text = input() def uppercase_decorator(func): def wrapper(text): return func(text).upper() return wrapper @uppercase_decorator def display_text(text): return(text) print(display_text(text))
3 Answers
+ 2
Unexpected indeindentation error in return wrapper
+ 2
#Kathleen McLaughin do not split the return value to a new line.
def uppercase_decorator(func):
def wrapper(text):
return func(text).upper()
return wrapper
+ 1
Thank you so much!