Cambridge International Pseudocode Guide (2026)
This page outlines the official pseudocode conversion rules for Cambridge International AS & A Level Computer Science (9618) 2026 examinations.
Refer to these guidelines when converting Python code to Cambridge standard pseudocode.
Reference: Cambridge Official Pseudocode Guide (PDF)
🔹 Cambridge International Pseudocode Conversion Rules (2026)
Basic Syntax
Python | Cambridge |
---|---|
# comment | // comment |
x = 5 | x ← 5 |
print(x, y) | output x, y |
x = input() | input x |
A[0] | A[1] |
Control Structures
Python | Cambridge |
---|---|
if x == 0: | IF x = 0 THEN |
for i in range(1, 6): | FOR i ← 1 TO 5 |
while x < 10: | WHILE x < 10 DO |
def add(a, b): | FUNCTION add(a, b) |
Operators
Python | Cambridge |
---|---|
a // b | a DIV b |
a % b | a MOD b |
and, or, not | AND, OR, NOT |
==, != | =, <> |
** | ^ |