lundi 17 juillet 2017

Python if-statement input error syntax [duplicate]

This question already has an answer here:

I'm using python 3.6. Just a beginner.

print ("Hello world")
num1= input("Enter a num:")
if(num1==10):
    print("You are awesome!")   

For some reason this code does not print "you are awesome!" when I enter the number 10. I do not understand why this does no evaluate to true when I enter 10.

Aucun commentaire:

Enregistrer un commentaire