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

4th Sep 2022, 12:33 PM
Susana Llop
Susana Llop - avatar
2 Réponses
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")
4th Sep 2022, 1:41 PM
SoloProg
SoloProg - avatar
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")
5th Jan 2023, 2:17 AM
Hector