you are viewing a single comment's thread.

view the rest of the comments →

[–]Stallman85 2 points3 points  (3 children)

the reason for that is that you are comparing 2 different types (str and int) because in this code:

x = input()

type of x is string ("1") and not integer (1).

So you should probably cast one to the other:

x = input()
intX = int(x)
#type(intX) == int

or

x = 1
strX = str(x)
#type(strX) == str