LearnPy Hub
← Decorators problems
Easy

Wrap in Brackets

Write a decorator bracket that puts the function's returned string inside [ and ]. Apply it twice (@bracket on two lines) to word(), which returns the input, and print the result.

Input

One line.

Output

One line.

Sample 1

Input
hi
Output
[[hi]]

Sample 2

Input
Python
Output
[[Python]]
solution.py
Output appears here
Wrap in Brackets · Python practice problem · LearnPy Hub