LearnPy Hub
← Strings problems
Easy

Clean the Spaces

Read a line with extra spaces at both ends. Print it between square brackets after strip(), like [text].

Input

One line.

Output

One line.

Sample 1

Input
   hello   
Output
[hello]

Sample 2

Input
x
Output
[x]
solution.py
Output appears here
Clean the Spaces · Python practice problem · LearnPy Hub