⚙️ Arithmetic Operators
Last Updated: 15th August 2025
They perform basic math on numbers (int, float, complex).
Hinglish Tip 🗣: Ye basic maths tools hain — plus, minus, multiply, divide, power, etc.
🗂 List of Arithmetic Operators
| Operator | Name | Example | Result |
|---|---|---|---|
| + | Addition | 5 + 3 | 8 |
| - | Subtraction | 10 - 4 | 6 |
| * | Multiplication | 4 * 3 | 12 |
| / | Division | 7 / 2 | 3.5 |
| // | Floor Division | 7 // 2 | 3 |
| % | Modulus (Remainder) | 7 % 2 | 1 |
| ** | Exponent (Power) | 2 ** 3 | 8 |
✏ Syntax & Mini Examples
a = 5
b = 4
print(a + b) # 9
print(a - b) # 1
print(a * b) # 20
print(a / b) # 1.25 (division → float)
print(a // b) # 1 (floor division)
print(a % b) # 1 (remainder)
print(a ** b) # 625 (power)
z1 = 2 + 3j
z2 = 1 + 2j
print(z1 + z2) # (3+5j)
print(z1 * z2) # (-4+7j)
Hinglish Tip 🗣: / hamesha decimal dega; pure number chahiye to // use karo. Negative numbers me // thoda “neeche” round karta hai.