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?
2 Answers
+ 6
Jeremiah Hall use like this way
x = int(input()
)
if x == 5:
print("Good job!")
else:
print("You loose!")