Decorators Practice "Uppercasing"
I've been understanding most of the lessons in the Python Core course, but Decorators have broken my mind. Specifically, the "Uppercasing" Practice. I do not understand how to take the text that is being passed in as the argument and capitalze it inside the "Wrapper" function. Everything I try results in an error or a "None" result. Examples: text = input() def uppercase_decorator(func): def wrapper(text): #your code goes here text = text.upper() return wrapper @uppercase_decorator def display_text(text): return(text) print(display_text(text)) -------------------------------- text = input() def uppercase_decorator(func): def wrapper(text): #your code goes here func(text.upper()) return wrapper @uppercase_decorator def display_text(text): return(text) print(display_text(text)) -------------------------------- text = input() def uppercase_decorator(func): def wrapper(text): #your code goes here func(text) text = text.upper() return wrapper @uppercase_decorator def display_text(text): return(text) print(display_text(text))