Question: Using Python Write a function called print_hi that takes in a single argument. Print the word hi that many times Write a menu driven program
Using Python

Write a function called print_hi that takes in a single argument. Print the word "hi" that many times Write a menu driven program where o option 1 is print hi once o option 2 is print hi 5 times o option 3 is exit o anything else is bad Your menu code doesn't have to be in a function, but it does have to be below/after the function. Expected Output Your output should match 100% This includes new lines, text, everything == MENU 1) print hi 2) print hi 5 times 3) exit Enter your choice: 1 hi == MENU 1) print hi 2) print hi 5 times 3) exit Enter your choice: 2 hihihihihi == MENU 1) print hi 2) print hi 5 times 3) exit Enter your choice: 5 That is not a valid option! == MENU 1) print hi 2) print hi 5 times 3) exit Enter your choice: 3 bye
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
