mardi 1 mai 2018

Simple if statement will not run correctly [duplicate]

This question already has an answer here:

When I run the following code, the else statement runs no matter what number I insert. The if statement is completely ignored, why?

print('what is your house number')
house = input()
if house == 81:
    print('thats my house number')
else:
    print('thats not my house number')

Aucun commentaire:

Enregistrer un commentaire