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: 0-2 years
Child: 3-12 years
Teenager: 13-19 years
Adult: 20+ 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 if,elif 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 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 Programming Questions!