Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Use python Create a program that asks a user a question. Your question should have at least two potential answers (you can do more than

Use python
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:/wwwtutorialspoint.com/python3/string lower.htme 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

Spatial Databases A Tour

Authors: Shashi Shekhar, Sanjay Chawla

1st Edition

0130174807, 978-0130174802

Students also viewed these Databases questions