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))

17th Nov 2022, 5:31 AM
Lashana Jegatheswaran
3 Answers
+ 2
Unexpected indeindentation error in return wrapper
17th Nov 2022, 5:45 AM
Sakshi [Offline 🙃]
Sakshi [Offline 🙃] - avatar
+ 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
17th Nov 2022, 5:48 AM
Bob_Li
Bob_Li - avatar
+ 1
Thank you so much!
17th Nov 2022, 10:11 AM
Lashana Jegatheswaran