Python Arithmetic Operators
Python Arithmetic Operators
Arithmetic operators are used with numeric values to perform common mathematical operations:
| Operator | Name | Example | Try it |
|---|---|---|---|
| + | Addition | x + y | Try it » |
| - | Subtraction | x - y | Try it » |
| * | Multiplication | x * y | Try it » |
| / | Division | x / y | Try it » |
| % | Modulus | x % y | Try it » |
| ** | Exponentiation | x ** y | Try it » |
| // | Floor division | x // y | Try it » |