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 Respostas
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")