+ 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
7 Answers
+ 4
thnks jayakrishna and simba it's run
+ 2
but it show try again and next exercise doesn't unlock
+ 2
Post the task description pls..
It may require Capital C in child...!?
What about age above 64?
+ 2
python for bigginer
exercise 22.2
+ 2
print("Child")
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")
- 1
if age ==17
#pint#Teen#