dimanche 25 octobre 2015

Python if elif else statements [duplicate]

This question already has an answer here:

I do not know what i am doing wrong. I try to learn Python as many people here .What is wrong here ???? I can not see the problem.

x = int(raw_input("please enter a number: "))
def the_flying_circus():
    if x < 5:    
        print "Your number is less then 5"
    elif x > 5:
        print "Your nuber is more then 5"
    else:
        print "Your number is 5"

print "Good bye"

Aucun commentaire:

Enregistrer un commentaire