LearnPy Hub
← Decorators problems
Medium

Stacked Decorators

Write @bold (wraps the result in *) and @italic (wraps in _). Apply @bold above @italic to text(s) returning s. Print text(input()).

Input

One word.

Output

One line.

Sample 1

Input
hello
Output
*_hello_*

Sample 2

Input
a
Output
*_a_*
solution.py
Output appears here
Stacked Decorators · Python practice problem · LearnPy Hub