+ 3

# Can anyone explain Operator precedence between and, or not

1 Answer

+ 1

It means that when you have a statement like: a or not b and c
Python will first compute not b, then not b and c, then a or not b and c, assuming not b is True and c is False, otherwise, execution will stop before the end of the statement evaluation