Operator Precedence | SoloLearn: Learn to code for FREE!

0

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

DreamANight

1 Answer

New Answer

0

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.