- 5

Given the age of a person as an input, output their age group. Here are the age groups you need to handle: Child: 0 to 11 T

age = int(input()) if age>0 and age<12: print("Child") elif age > 11 and age < 18: print("Teen") elif age > 17 and age<65: print("Adult")

31st Jan 2022, 7:16 AM
mahdi
1 Antwort
0
elif age>17 and age<65 delete at the end elif and then type else maybe
31st Jan 2022, 8:48 AM
Beary
Beary - avatar