Easy
Before and After
Write a decorator that prints
before, calls the function and prints after. Decorate say(msg), which prints msg. Read a message and call say.Input
One line.
Output
Three lines.
Sample 1
Input
hello
Output
before hello after
Sample 2
Input
x
Output
before x after
Output appears here