Revise Computingrevisecomputing.co.uk
At a glanceFeaturesStudentsPricingHow it worksFree GCSE notesExam dates
At a glanceFeaturesStudentsPricingHow it worksFree GCSE notesExam dates

Knowledge organisers / Arithmetic Operators

Arithmetic operators

All topicsPractise exam questions
Knowledge organiser

Arithmetic Operators

301.2a

Use + - * / for calculations.

What you need to know

Python supports standard arithmetic operators for calculations. The / operator always returns a float (decimal), even when dividing whole numbers.

Key points

  • + adds, - subtracts, * multiplies
  • / always gives a float: 10 / 2 → 5.0
  • Operators work on variables and literals
  • Parentheses change the order of evaluation

Code examples

Basic arithmetic
python
a = 10
b = 3
print(a + b)   # 13
print(a - b)   # 7
print(a * b)   # 30
print(a / b)   # 3.333...