Classifying age into life stages

Report a typo

Write a program that reads an integer from the user representing their age. If the age is less than 18, print 'Minor'. If the age is between 18 and 64 inclusive, print 'Adult'. If the age is 65 or above, print 'Senior'.

Sample Input 1:

15

Sample Output 1:

Minor

Sample Input 2:

45

Sample Output 2:

Adult
Write a program in Python 3
# Read the user's age
age = int(input())

# Check the age and print the corresponding category
# TODO: Write your if statement here

Create a free account to access the full topic