Python - Arithmetic Operators
Python has arithmetic operators for evaluating arithmetic operations.
- + - Addition
- - - Subtraction
- * - Multiplication
- / - Division
- % - Modulus
- ** - Exponentiation
- // - Floor Division
Example
print(5 + 2) # 7
print(7 - 2) # 5
print(5 * 8) # 40
print(7 / 3) # 2.3333
print(7 % 2) # 1
print(3 ** 4) # 81
print(7 // 3) # 2