0
Tengo un problema con la logica booleana en la prĂĄctica de los grupos de edad
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")
2 Answers
0
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")
else: print("N/A")
0
Esta es la soluciĂłn correcta.
if age >0 and age<=11:
print("Child")
elif age>=12 and age <=17:
print("Teen")
elif age >=18 and age <=64:
print ("Adult")