+ 3

Can anyone explain Operator precedence between and, or not

5th Mar 2017, 11:19 AM
Vibhu Vashishtha
Vibhu Vashishtha - avatar
2 odpowiedzi
+ 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
5th Mar 2017, 10:50 PM
Amaras A
Amaras A - avatar