Why is the sign "==" is not working on python 3 if statements.

9/4/2019 3:49:00 PM


4 Answers

New Answer


It is working. Wanna share your code so we can check what's wrong?


Ishmam Farhan the x=input("") part is wrong. Convert it to an int then it will work in the comparison like int(input(''))


Thank you so muuuuuch!!! 😍😍😍


print("Hey dude!!!\nWhat is the number before 18 ???") x = input("") print("User: I think it is "+(x)+".") if x == 17: print("So, you are absolutely right!!!") else: print("You are absolutely wrong!!!") #however I input any number it always comes out the else result!!!