Python - Arithmetic Operators

python arithmetic operators

Python has arithmetic operators for evaluating arithmetic operations.



Example

print(5 + 2) # 7
print(7 - 2) # 5
print(5 * 8) # 40
print(7 / 3) # 2.3333
print(7 % 2) # 1
print(3 ** 4) # 81
print(7 // 3) # 2