Question: Write a function called get_user_input() that takes a list of strings as arguments. When the function is called, it should ask the user to make

Write a function called get_user_input() that takes a list of strings as arguments. When the function is called, it should ask the user to make a selection from the options listed in the given list. Then it should get input from the user. If the user doesn't input one of the given choices, then the program should repeatedly ask the user to pick from the list. Finally, the function should return the word the user selected. Here is a sample of what the result should look like when the function is called:

Write a function called get_user_input() that takes a list of strings as

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!