mercredi 29 juillet 2015

I am trying to do an if statement with the input to be 21 and the result be Time printed out

So first of all I want to know is there something that goes if Hello = 18 print Hello.

My code looks like this I want it to print out time which is already a working variable. I want if Hello = 21 but it doesn't do =. I also want to know why I can't just do print Time.

Hello = (input("What is 10 + 9 ")) if Hello > 20 print Time`

Aucun commentaire:

Enregistrer un commentaire