道 TechDojo

Update 7 · H446/02

Think it. Trace it.
Code it.

Your Paper 2 practice bench. Solve a problem your way, test the behaviour, then check the method.

Runs on your device · Drafts saved in this browser · Lab practice does not award account XP

Supplied Python code (loaded automatically)
Test cases & expected results

Each case starts fresh. Tests check these examples, not every possible input or your choice of algorithm.

Need a hint?

How marking works

Python runs against behaviour tests. A different correct implementation can pass. Pseudocode is self-assessed with a worked answer and method checklist. Neither is an official OCR mark.

Use the specified names and return values. Tab indents; Ctrl/⌘ + Enter runs tests. Python loads from a pinned CDN only when you run it.

Ready when you are.

Revise Paper 2 theory

Original TechDojo practice based on the supplied H446/02 specification and 2021–2025 paper styles. Not an official OCR assessment. Pseudocode conventions vary; judge the logic, not exact spelling.