Can anyone explain Operator precedence between and, or not | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 3

Can anyone explain Operator precedence between and, or not

5th Mar 2017, 11:19 AM
Vibhu Vashishtha
Vibhu Vashishtha - avatar
1 Réponse
+ 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