Arithmetic Operators are used to perform basic arithmetic operations like addition, subtraction, division etc.

# Arithmetic operators | |
x = 15 | |
y = 4 | |
# Output: x + y = 19 | |
print('x + y =',x+y) | |
# Output: x - y = 11 | |
print('x - y =',x-y) | |
# Output: x * y = 60 | |
print('x * y =',x*y) | |
# Output: x / y = 3.75 | |
print('x / y =',x/y) | |
# Output: x // y = 3 | |
print('x // y =',x//y) | |
# Output: x ** y = 50625 | |
print('x ** y =',x**y) |
# This is a Python Demo - Operators | |
x = 6 | |
y = 2 | |
# addition | |
print(x + y) # 8 | |
# subtraction | |
print(x - y) # 4 | |
# multiplication | |
print(x * y) # 12 | |
# division | |
print(x / y) # 3 | |
# equal to | |
print(x == y) # False | |
# not equal to | |
print(x != y) # True | |
# less than | |
print(x < y) # False | |
# and | |
print(x > 0 and y < 0) # True |




I’m a DevOps/SRE/DevSecOps/Cloud Expert passionate about sharing knowledge and experiences. I am working at Cotocus. I blog tech insights at DevOps School, travel stories at Holiday Landmark, stock market tips at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at I reviewed , and SEO strategies at Wizbrand.
Please find my social handles as below;
Rajesh Kumar Personal Website
Rajesh Kumar at YOUTUBE
Rajesh Kumar at INSTAGRAM
Rajesh Kumar at X
Rajesh Kumar at FACEBOOK
Rajesh Kumar at LINKEDIN
Rajesh Kumar at PINTEREST
Rajesh Kumar at QUORA
Rajesh Kumar at WIZBRAND