1Arithmetic:
2operator | name | example |
3+ Addition x + y
4- Subtraction x - y
5* Multiplication x * y
6/ Division x / y
7% Modulus x % y
8** Exponentiation x ** y
9// Floor division x // y
10
11Comparison:
12Operator | Name | Example |
13== Equal x == y
14!= Not equal x != y
15> Greater than x > y
16< Less than x < y
17>= Greater than or equal to x >= y
18<= Less than or equal to x <= y
19
20Assignment:
21Operator | Example |
22= x = 5
23+= x += 3
24-= x -= 3
25*= x *= 3
26/= x /= 3
27%= x %= 3
28//= x //= 3
29**= x **= 3
30&= x &= 3
31|= x |= 3
32^= x ^= 3
33>>= x >>= 3
34<<= x <<= 3
35
36
37