Medium
Decorator With an Argument
Write
prefix(text), a decorator factory: the decorated function's result gets text put in front. Decorate def shout(s): return s.upper() with @prefix('>> '). Read a line and print shout(line).Input
One line.
Output
One line.
Sample 1
Input
hello
Output
>> HELLO
Sample 2
Input
Learn
Output
>> LEARN
Output appears here