Question: In Python Write a program that does the following: 1 ) Ask the user to - - Enter ' b ' for bird or '

In Python
Write a program that does the following:
1) Ask the user to -- Enter 'b' for bird or 'm' for mammal:
2) Validate that input to allow only b, B, m, or M
3) Print "That is not a valid input" if an incorrect value was entered and have the user re-enter the input
4) Upon successful input, display "You chose bird" or "You chose mammal" depending on their input.
Ex: If the input is:
Enter 'b' for bird or 'm' for mammal: B
the output is:
You chose bird

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!