Before you practise any notation, confirm which one your exam year uses. The reasoning skill stays the same, but the symbols you write must match what your paper expects.
This is the last lesson in pseudocode for the applicable syllabus. Our own notes treat 2026 to 2028 as the period where Cambridge-style pseudocode is expected, and say later papers may differ, so treat the Cambridge syllabus page as the authority and check it yourself.
What exactly should I check?
Work through four questions, and write the answers down:
- Which syllabus year does my exam series fall under? Ask your school or exam centre for the series you are entered for.
- Does that syllabus say pseudocode, a named programming language, or both?
- Does the pseudocode guide in the syllabus list the functions and symbols I plan to use?
- Do the past papers for that syllabus use the same notation as my revision notes?
Registration and entry are handled by your exam centre, so ask them if the syllabus version is unclear.
Worked example
The same task in two notations: add the whole numbers from 1 to 4 and output the total.
Pseudocode:
Total ← 0
FOR Count ← 1 TO 4
Total ← Total + Count
NEXT Count
OUTPUT Total
Python:
total = 0
for count in range(1, 5):
total = total + count
print(total)
Both give 10: 1 + 2 + 3 + 4 = 10. In Python, range(1, 5) stops before 5, so it covers 1, 2, 3 and 4. That is a good example of why notation matters: the loop bound looks different, even though the behaviour is the same.
The mistake to watch for
A common slip is writing a hybrid.
Mistaken answer:
for Count in range(1, 5):followed byTotal ← Total + CountThis mixes Python’s loop line with a pseudocode arrow. A reader cannot tell which language the answer is written in.
The correction is to choose one notation per answer. If the question asks for pseudocode, write FOR Count ← 1 TO 4. If it allows Python, write Python from the first line to the last, with = for assignment.
Check yourself
1. Which symbol stores a value in a variable in Cambridge-style pseudocode?
Show answer
The arrow ←. In Python the equivalent is =.
2. range(1, 5) in Python covers which numbers?
Show answer
1, 2, 3 and 4. The end value 5 is not included.
3. A question says “write an algorithm in pseudocode”. You normally code in Python. What do you do?
Show answer
Write the algorithm in pseudocode, following the conventions from the syllabus guide. Use Python only to test your idea in practice.
Where this leads next
Put the whole module together in the mixed pseudocode practice set. Run a short exercise in the Python reasoning sandbox to see the same logic in a real language.
If you would like help matching your revision to your exam year, see our online one-to-one Computer Science tuition, and check the syllabus facts on the Cambridge page.