Arithmetic Operators
Arithmetic operators are the most commonly used. In Python the arithmetic operators will work as in basic mathematics. There are seven arithmetic operators that perform different mathematical operations, such as:
+(Addition)-(Subtraction)*(Multiplication)/(Division)//(Floor division)%(Modulus)**(Exponentiation)
Example:
a, b = 10, 3
print(a + b) # 13 — Addition
print(a - b) # 7 — Subtraction
print(a * b) # 30 — Multiplication
print(a / b) # 3.33 — Division (float)
print(a // b) # 3 — Floor Division
print(a % b) # 1 — Modulus
print(a ** b) # 1000 — Exponentiation