This question already has an answer here:
- How can I read inputs as integers? 14 answers
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