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:
Ask the user to Enter b for bird or m for mammal:
Validate that input to allow only b B m or M
Print "That is not a valid input" if an incorrect value was entered and have the user reenter the input
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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
