September 2017
Intermediate to advanced
306 pages
7h 53m
English
In this Appendix I’ve detailed some reference lists and tables you may find useful.
ORDER OF OPERATOR PRECEDENCE
From lowest to highest. (Source: https://docs.python.org/3/reference/expressions.html#operator-precedence)
Table A.1 Order of operator precedence
Operator |
Description |
lambda |
Lambda expression |
if – else |
Conditional expression |
or |
Boolean OR |
and |
Boolean AND |
not x |
Boolean NOT |
in, not in, is, is not, <, <=, >, >=, !=, == |
Comparisons, including membership tests and identity tests |
| |
Bitwise OR |
^ |
Bitwise XOR |
& |
Bitwise AND |
<<, >> |
Shifts |
+, - |
Addition and subtraction |
*, @, /, //, % |
Multiplication, matrix multiplication, division, remainder |
+x, -x, ~x |
Positive, negative, ... |
Read now
Unlock full access