Python Arithmetic Operators
Arithmetic operators are used with numeric values to perform common mathematical operations.
Types of Arithmetic Operators
Name | Operator | Example |
---|---|---|
Addition | + | a+b |
Subtraction | - | a-b |
Multiplication | * | a*b |
Division | / | a/b |
Modulus | % | a%b |
Exponentiation | ** | a**b |
Floor Division | // | a//b |