+ 1
What is mean of == in python
4 Answers
+ 8
compares to,
compares two value and returns true if they have equal values regardless of type
+ 8
Brains is right but I think that "regardless of type" might be misunderstood. This does not mean that '5' == 5 which will return False
+ 3
== means 'is set to' (equivalence)
= means 'is' (identity)