← Back to all tools

🧩 How to Learn Code by Puzzle-Solving — Parsons Problems

Drag scrambled code blocks into the correct order. Choose a built-in problem or paste your own code to generate one.

Designed with the WJEC specification in mind
CS GCSE Unit 2

🤔 What are Parsons Problems?

Parsons Problems are coding puzzles where the lines of code are given to you, but scrambled up. You just need to put them in the right order — no typing required! It helps you learn program structure without worrying about syntax.

🍕 Analogy: It's like having a jigsaw puzzle where someone gives you all the pieces — you just need to figure out how they fit together to make the picture!
🧩 Solve Problems
✍️ Create Your Own
📋

Choose a problem

📦 Available Blocks

📋 Your Solution (drag here)

✍️

Paste code to create a Parsons Problem

Paste any Python code below. It will be split into blocks (one per line) and scrambled for students to reassemble.

📝

Exam Tips

  • GCSE: Focus on the logic flow — input, process, output structure
  • Key point: Variables must be defined before they're used
  • Remember: Indentation matters in Python — all lines in a loop/if block must be indented the same
  • Strategy: Start with the most obvious lines (like imports, main function calls) then fill in the middle