Design a decorator that will return the string written in all uppercase letters.
Function decorators
All to uppercase
Report a typo
Sample Input 1:
I love Python!Sample Output 1:
I LOVE PYTHON!Write a program in Python 3
def to_upper(function):
# YOUR CODE HERE
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.