Knowledge organisersArithmetic Operators
Use + - * / for calculations.
Python supports standard arithmetic operators for calculations. The / operator always returns a float (decimal), even when dividing whole numbers.
+ adds, - subtracts, * multiplies/ always gives a float: 10 / 2 → 5.0a = 10
b = 3
print(a + b) # 13
print(a - b) # 7
print(a * b) # 30
print(a / b) # 3.333...