Question: Write a program that categorizes a person based on the following criteria: Infant: 0 - 2 years Child: 3 - 1 2 years Teenager: 1
Write a program that categorizes a person based on the following criteria:
Infant: years
Child: years
Teenager: years
Adult: years
Steps:
Create a file with name checkCategory.py
Get the age from the user using the input function.
Write the logic to determine the age category Use ifelif and else statements. You can use
logical operator and to check for range
Display the category of the person.
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
