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'.
Classifying age into life stages
Report a typo
Sample Input 1:
15Sample Output 1:
MinorSample Input 2:
45Sample Output 2:
AdultWrite 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
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.