samedi 6 juin 2020

Python input if statement [duplicate]

I am trying to run a program that if a someone enter a number higher than 10, the compiler replies with hello.i keep getting errors and am having cant figure out why?

x = input() if x > 10: print("hello")

Aucun commentaire:

Enregistrer un commentaire