lundi 11 novembre 2019

Why if not getting the value of input?

as you can see down it's not giving the value of input to the if! why? and how i can make the value of input be stored to Variable (number)

number = input(f"Enter a Number? ")
if number == (1):
    print("one")
if number == (2):
    print("two or greater")
else:
    print("negative number")
Enter a Number? 1
negative number

Aucun commentaire:

Enregistrer un commentaire