Question: 1.) Write a function called print_word that has two parameters. The first is for an integer (assume it will always be non-negative). The second is

1.) Write a function called print_word that has two parameters. The first is for an integer (assume it will always be non-negative). The second is for a string. The function will print the string on the given number of lines, each time preceded by a line number and an arrow. See the examples below for the format of the output (i.e. if you call your function with the same arguments as in the examples your output should look like the output in the examples) Here are some examples of calling the function with different arguments. (The code executed is in blue, the output produced is in green): print_word (3, 'banana') 1 -->banana 2-->banana 3 --> banana print_word (4, 'mississippi') 1 --> mississippi 2 ->mississippi 3 --mississippi 4 --> mississippi
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
