Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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:
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started