Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

In python please
Make it accept multiple same answers choices
For example- yes and YES would both be a valid answer choice image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Practical Database Programming With Visual C# .NET

Authors: Ying Bai

1st Edition

0470467274, 978-0470467275

More Books

Students also viewed these Databases questions

Question

Identify the two factors in the two-factor theory of emotion.

Answered: 1 week ago