I found that the result of evaluating a in b == c
is always equal to (a in b) and (b == c)
. Could anyone explain that?
Here is an example running on Python3.7:
>>>> "123" in "1234" == "1234"
True
>>>> "123" in "1234" != "1234"
False
>>>> "123" in "1234" != "12345"
True
>>>> "123" in "1234" == "12345"
False
>>>> "888" in "1234" == "1234"
False