LearnPy Hub
← Introduction & print() problems
Medium

Framed Word

Read a word and print it inside a frame of # characters. The frame is 4 characters wider than the word:
#######
# cat #
#######

Input

One word.

Output

Three lines.

Sample 1

Input
cat
Output
#######
# cat #
#######

Sample 2

Input
Python
Output
##########
# Python #
##########
solution.py
Output appears here
Hints
Framed Word · Python practice problem · LearnPy Hub