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
✏ 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.
