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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!