b = 'a'
print(b==('b' or 'a'))
You will get False
if you enter this code.
But if you change the order like this:
b = 'a'
print(b==('a' or 'b'))
You get True
.
So, why does or
in this code only consider the first value of the two?
I think the upper code should also return True
.