Operator Precedence | SoloLearn: Learn to code for FREE!


Operator Precedence

>>> False == False or True True >>> False == (False or True) False >>> (False == False) or True True I've been staring at this for awhile, I don't get it.

11/22/2016 8:37:37 PM


1 Answer

New Answer


well, it's working exactly as it should. in python, comparison operators have a higher precedence than boolean operators, but a lower precedence than the bracket.