Revise Computing
Revision notesQuestionsFor schools
Log inStart revising free
Revision notesQuestionsFor schoolsLog in
GCSE Computer Science/Supplementary programming practice/Arithmetic Operators

Arithmetic operators

301.2 Arithmetic Operators

Practise exam questions

Arithmetic Operators — Note 1 of 4

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.

What to know

  • + 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...
← Previous topicSequence execution301.1 Output and SequenceNext note →DIV and MOD301.2 Arithmetic Operators

Back to Arithmetic Operators

Specification notes for programming are in Paper 2.

Arithmetic Operators

Note 1 of 4

  1. 1Arithmetic operators
  2. 2DIV and MOD
  3. 3Exponentiation
  4. 4Operator precedence
Topic overview

© 2026 Revise Computing · revisecomputing.co.uk

Privacy noticeTermsContact

Revise Computing is an independent revision resource. It is not affiliated with, or endorsed by, OCR (Oxford Cambridge and RSA Examinations).