Question: In python please Make it accept multiple same answers choices For example- yes and YES would both be a valid answer choice Create a program
Create a program that asks a user a question. Your question should have at least two potential answers (you can do more than two if you really want to). Once the user answers the question, the progranm should validate that the user input a valid answer. If they haven't, the program should loop until they have entered in a correct answer. Once a correct answer has been received, the program should respond uniquely based on what they answered (one output for the first answer, another output for the second answer). It doesn't have to be complex: just a simple print response will suffice. Your program should allow any type of casing for your valid answers. For example,if "turtle" is a valid answer, then your program should accept "TURTLE" or Turtle" as a valid answer also. The following resource will aid you in this: https://www.tutorialspoint.com/python3/string lower.htm Hints: Your program should use a loop Your program should also use conditions - they should only be checked if there's a valid answer though
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
