a==b return False because a is not equal to b variable, both same value but have a different type. a=1, variable a has an integer value of 1. b="1" so b has string value because you enclosed with "1" double quotation so it interpreted as string so in Python, == operator checks the type of variable and value of the variable if both type and value of variable are equal then only it runs true or it returns false.