Easy
Yield a Value
Use
@contextmanager to write shouting(text) that prints [, yields the text in upper case and prints ] afterwards. Read a line and print the yielded value inside the with block.Input
One line.
Output
Three lines.
Sample 1
Input
hello
Output
[ HELLO ]
Sample 2
Input
Python
Output
[ PYTHON ]
Output appears here