Why does 42 == '42' evaluate to False in Python?
42 == '42'
False
== assigns a new value instead of comparing operands.
==
Python strings can never compare equal to anything, including other strings.
Quotation marks force both operands to become floating-point numbers.
One operand is an integer and the other is a string, so they are not equal values.