Write a program that prompts the user to enter their age and prints the corresponding age group. The program should use the following age groups:
0-12: Child
13-19: Teenager
20-59: Adult
60 and above: Senior Citizen
Source Code
age = int(input("Enter your age: "))
if age >= 0 and age <= 12:
print("Your age group is Child")
elif age >= 13 and age <= 19:
print("Your age group is Teenager")
elif age >= 20 and age <= 59:
print("Your age group is Adult")
else:
print("Your age group is Senior Citizen")
Output
Enter your age: 16
Your age group is Teenager