jeudi 12 juillet 2018

I've got a logical Error in my first if statement program

I have typed this code in python,

age = int(input("Enter your age: "))
if age < 13:
    print("You are a Kid!")
elif (age == 13 and age < 18):
    print("You are a teenager!")
else:
    print("You are an adult!")

For the age greater than 13 I'm getting YOU ARE AN ADULT Where did i go wrong? Looking forward for your help :)

Aucun commentaire:

Enregistrer un commentaire