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