Question: Python Assignment # 4 Conditional Logic Ants and Grasshoppers - a Work Ethic Classification Ants complete their work before relaxing Grasshoppers relax before completing their
Python Assignment # 4 Conditional Logic
Ants and Grasshoppers - a Work Ethic Classification
Ants complete their work before relaxing
Grasshoppers relax before completing their work
Neither-nors alternate work and relaxing
Create a menu of user choices
For example:
Type 1 if you complete all your work before relaxing
Type 2 if . . .
Type 3
Use if-elif-else to classify the users work ethic
For, example, if the user selects 1, print You are an ant
Use try except to insure input is in the form of an integer
Use the final else to eliminate all numbers other than 1, 2, or 3
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
