What pseudocode is for
Pseudocode describes an algorithm in structured English, without worrying about the exact rules of a programming language. In the exam it lets you show your logic clearly. Examiners mark the logic, so small differences in notation rarely lose marks, as long as your steps are clear and in the right order.
AQA publishes its own pseudo-code, and OCR uses an Exam Reference Language. Questions on your paper will be written in your board's style, so learn to read it fluently.
Side by side
| Building block | AQA pseudo-code | OCR Exam Reference Language | Python |
|---|---|---|---|
| Output | OUTPUT "Hello" | print("Hello") | print("Hello") |
| Input | name ← USERINPUT | name = input("Name") | name = input("Name") |
| Assignment | total ← 0 | total = 0 | total = 0 |
| Equal to | age = 16 | age == 16 | age == 16 |
| Not equal | age ≠ 16 | age != 16 | age != 16 |
| Selection | IF age ≥ 16 THEN | if age >= 16 then | if age >= 16: |
| Count loop | FOR i ← 1 TO 10 | for i = 1 to 10 | for i in range(1, 11): |
| Condition loop | WHILE total < 100 | while total < 100 | while total < 100: |
| Repeat until | REPEAT | do | No direct equivalent |
| Array | nums ← [3, 7, 1] | array nums[3] | nums = [3, 7, 1] |
| Function | SUBROUTINE add(a, b) | function add(a, b) | def add(a, b): |
Pearson Edexcel assesses programming on screen in Python, so Edexcel students should focus on the Python column. Always check your board's current reference guide.
A worked example
Task: ask for a number, then output the total of every whole number from 1 up to it.
number ← USERINPUT
total ← 0
FOR i ← 1 TO number
total ← total + i
ENDFOR
OUTPUT total
Five habits that earn marks
- Plan in plain English first. Write the steps as a list, then turn each step into pseudocode.
- Indent inside every IF and loop. It shows the examiner where each block starts and ends.
- Close every structure. ENDIF, ENDFOR, ENDWHILE. Missing endings make logic ambiguous.
- Use meaningful names.
totalandscore, notxandy. - Trace it. Run your pseudocode with a small test value before moving on.

