Question: Write a Python function that asks users for their favorite phrase and then creates a rectangle using the entered phrase. For example, if Hello was
Write a Python function that asks users for their favorite phrase and then creates a rectangle using the entered phrase. For example, if Hello was the phrase entered the result will be the following rectangle.
Enter Word or phrase: hello
hello
h h
e e
l l
l l
o o
hello
Enter Word or phrase: SMARTPHONE
SMARTPHONE
S S
M M
A A
R R
T T
P P
H H
O O
N N
E E
SMARTPHONE
Note/Hint: since the above rectangles are being output to a screen, they must be created one line at a time, from top to bottom.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
