Arithmetic Operators
Operator
Meaning
Example
Example
x = 15
y = 4
print(x + y) # 19
print(x - y) # 11
print(x * y) # 60
print(x / y) # 3.75
print(x // y) # 3
print(x % y) # 3
print(x ** y) # 50625Notes
Precedence (Highest to Lowest)
Last updated