Question: In python please Write code for a loop that loops until the user has entered an appropriate response. The variable you're checking should be named
Write code for a loop that loops until the user has entered an appropriate response. The variable you're checking should be named "answer" and the acceptable responses are "yes" and "no". If not one of the acceptable answers, the loop body should print an error and ask the question again. What question is asked is up to you; you can assume the question has already been asked prior to the loop you're writing
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
