0

x = input()

This doesnt seem to work when using if statements. For example: x = input() if x == 5: print(Good job!) else: print(You loose!) When running this and you inter 5 I am assuming it is outputting x = input(5) not x = 5 because it is saying You loose when I print this. My question is how can I get this to work if possible?

22nd Nov 2019, 6:49 PM
Jeremiah Hall
Jeremiah Hall - avatar
2 Antworten
+ 6
Jeremiah Hall use like this way x = int(input() ) if x == 5: print("Good job!") else: print("You loose!")
22nd Nov 2019, 6:54 PM
GAWEN STEASY
GAWEN STEASY - avatar