I've recently stumbled over this expression:
True == False in (False,)
It evaluates to False
, but I don't understand why.
True == False
is False
and False in (False,)
is True
, so both (to me) plausible possibilities
True == (False in (False,))
and
(True == False) in (False,)
evaluate to True
, as I would have expected.
What is going wrong here?