TutorSyntax • Free Computer Science revision

Pseudocode ↔ Python: Printable Quick Reference

A one-page-style study sheet for students who code in Python but need to read OCR or AQA exam notation.

Translate what the instructions mean

OCR GCSE uses its Exam Reference Language; AQA GCSE uses its own pseudocode. Neither is a second language you must program in for every exam question. Recognise the logic and follow the question's required format.

PurposePythonOCR GCSE styleAQA GCSE style
Assignmentx = 10x = 10x ← 10
Equalityx == 10x == 10x = 10
Outputprint(x)print(x)OUTPUT x
Selectionif ...:if ... then … endifIF ... THEN … ENDIF
Count looprange(1, 5)for i = 1 to 4 … nextFOR i = 1 TO 4 … ENDFOR
While loopwhile ...:while ... … endwhileWHILE ... … ENDWHILE
Remainder%MODMOD

Try a 3-minute active recall test

Cover the table and explain the difference between assignment and equality. Write a Python loop that displays the numbers 1 to 5. Then translate it into your board's reference style.

Reveal possible solution
for number in range(1, 6):
    print(number)

OCR style: for number = 1 to 5 / print(number) / next. AQA style: FOR number = 1 TO 5 / OUTPUT number / ENDFOR.

Full examples, a trace table, written challenges and interactive questions: Pseudocode vs Python: complete guide.

Open full guide →

Original TutorSyntax teaching examples. Not an official OCR/AQA reference sheet. Check your current specification.

Continue learning

Choose your examination specification, practise a question and check your answer. Revisit weaker topics after a few days.

Independently written TutorSyntax content; not endorsed by OCR or AQA. Always check your school’s specification and mock coverage.