LearnPy Hub
← Decorators problems
Easy

Wrap by Hand

Write stars(func) that returns a new function printing ***, calling func, then printing ***. Make show = stars(say) where say() prints the input line, and call show().

Input

One line.

Output

Three lines.

Sample 1

Input
hello
Output
***
hello
***

Sample 2

Input
Python
Output
***
Python
***
solution.py
Output appears here
Wrap by Hand · Python practice problem · LearnPy Hub