+ 2

age group python error

my code for age group is age = int(input()) if age>=0 and age<=11: print("child") elif age>=12 and age<=17: print("Teen") elif age>=18 and age<=64: print("Adult") but when i run it 4th and 5th section showing error in practice why is this? anybody plz help me

6th Mar 2022, 9:02 AM
Ridham Pethani
7 Antworten
+ 4
thnks jayakrishna and simba it's run
6th Mar 2022, 9:19 AM
Ridham Pethani
+ 2
but it show try again and next exercise doesn't unlock
6th Mar 2022, 9:10 AM
Ridham Pethani
+ 2
Post the task description pls.. It may require Capital C in child...!? What about age above 64?
6th Mar 2022, 9:13 AM
Jayakrishna 🇮🇳
+ 2
python for bigginer exercise 22.2
6th Mar 2022, 9:14 AM
Ridham Pethani
+ 2
print("Child")
6th Mar 2022, 9:16 AM
Simba
Simba - avatar
0
age = int(input()) # your code goes here # Akhartouz_youssef if age>=0 and age<=11: print("Child") elif age>=12 and age<=17: print("Teen") elif age>=18 and age<=64: print("Adult") elif age>65: print("Senior")
6th Mar 2022, 8:59 PM
Akhartouz Youssef
Akhartouz Youssef - avatar
- 1
if age ==17 #pint#Teen#
6th Mar 2022, 8:22 PM
Akhartouz Youssef
Akhartouz Youssef - avatar