Operators
Unary Operators
+
. Unary plus-
. Unary minus
Binary Operators
These include:
*
/
**
+
. Can also Python append to the list`x-
//
They work on two operands.
Operator Precedence
Operations are evaluated left to right, except for exponentiation and conditional expressions which are evaluated right to left.
Operators | Name |
---|---|
() | parenthesis |
** | exponent |
+x, -x | unary plus, unary minus |
*, /, //, % | multiplication, division, Integer Division 1, Python Modulo Operation |
+, - | addition, subtraction |