0

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

9/4/2019 3:49:00 PM

🔥Iƒαянαn🔥 🇧 🇩

4 Answers

New Answer

+2

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

+2

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

+2

Thank you so muuuuuch!!! 😍😍😍

+1

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!!!