LearnPy Hub
← Decorators problems
Easy

Shout Decorator

Write a decorator @shout that makes a function's returned string upper case and adds '!'. Apply it to greet(name) returning 'hello NAME'.

Input

One name.

Output

One line.

Sample 1

Input
Mim
Output
HELLO MIM!

Sample 2

Input
world
Output
HELLO WORLD!
solution.py
Output appears here
Shout Decorator · Python practice problem · LearnPy Hub