Python decorators 67.2 Python core
Hello people. I have a question about this specific problem from Lesson 67.2 in the python core course I dont understand how "def display_text(text):" and "def uppercase_decorator(func):" are linked together. I mean we just called "print(display_text(text)) and this function returns the text? Really confusing to me. I had no problem to catch up with the logic of the examples earlier in that lesson until this one showed up. Would appreciate it if someone could explain it to me so i understand it:) text = input() def uppercase_decorator(func): def wrapper(text): return func(text).upper() #your code goes here return wrapper @uppercase_decorator def display_text(text): return(text) print(display_text(text))