- 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")
1 Antwort
0
I think you probably want something like:
If age > 0 and age <=11:
Print...
Elif age >11 and age <= 17:
... and so on