Two items may be unequal in many ways. Can python tell what is the reason?
For example: 5 is not 6
, int(5) is not float(5)
, "5" is not "5 "
, ...
Edit: I did not ask what kinds of equality test there are, but why and how those are not equal. I think my question is not duplicate.