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