No idea why this happens. Can anyone explain?
>>> foo = ['a', 'b', 'c']
>>> bar = [1, 2, 3]
>>> 'a' in (foo or bar)
True
>>> 'a' in (bar or foo)
False
I understand that python reads left to right, and that I should write out
>>> 'a' in foo or 'a' in bar
but what is going on in my test example? Why do I get True and False respectively?