- 7

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 ответ
0
I think you probably want something like: If age > 0 and age <=11: Print... Elif age >11 and age <= 17: ... and so on
31st Jan 2022, 3:23 PM
Ausgrindtube
Ausgrindtube - avatar