
Table of Python Arithmetic Operators
| Operator | Description | Example (where a = 1, b = 2) |
| + | Addition | a + b # Output 3 |
| – | Subtraction | a – b # Output -1 |
| * | Multiplication | a * b # Output 2 |
| / | Division | a / b # Output 0.5 |
| % | Modulus | a % b # Output 1 |
| ** | Exponentiation | a ** a # Output 1 |
| // | Floor Division, returns the integer part of the quotient | a // b # Output 0 |
Disclaimer: The content is for reference only and does not guarantee accuracy!