- #1
Mr Davis 97
- 1,462
- 44
I have the following table for order of operations in Python. It all makes sense except for the unary operation negation. What does it mean that the order of precedence is from right to left? Can I have an example?Symbols - Operator - Type Order of precedence
( ) Parentheses Highest
- Unary (from right to left)
*, /, //, % Multiplicative (from left to right)
+, - Additive (from left to right)
( ) Parentheses Highest
- Unary (from right to left)
*, /, //, % Multiplicative (from left to right)
+, - Additive (from left to right)