Question: using python Write a procedural function vertical_strings (string) that takes a string as a parameter and prints each letter of the string on a new

 using python Write a procedural function vertical_strings (string) that takes a

using python

Write a procedural function vertical_strings (string) that takes a string as a parameter and prints each letter of the string on a new line. Each letter is repeated for the length of the word (for example: given a three letter word each letter is printed three times). You may assume the string has at least one character in it. Remember, you can repeat a string by multiplying it by a number. For example: Test Result vertical_strings('Hi') HH ii vertical_strings('Pineapple') PPPPPPPPP iiiiiii nnnnnnnnn eeeeeeeee aaaaaaaaa PPPPPPPPP PPPPPPPPP lllllllll eeeeeeeee

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!