← Back to all tools

🐛 Why Did My Code Break? — Python Error Translator

Paste a Python error message and get a student-friendly explanation with suggestions for how to fix it.

Designed with the WJEC specification in mind
CS GCSE Unit 2

🤔 What are Python errors?

When Python can't understand or run your code, it gives you an error message. These messages might look scary, but they're actually Python trying to help you! They tell you exactly what went wrong and where.

🍕 Analogy: Error messages are like a cooking recipe gone wrong — "You forgot to add flour on step 3!" Python is just telling you what ingredient (variable) is missing or which step (line) needs fixing.
💥

Paste your error message

📖

Common Python Errors Reference

📝

Exam Tips

  • GCSE: Know the difference between syntax errors (code structure) and runtime errors (problems while running)
  • Key point: Read error messages from bottom to top — the last line tells you what type of error it is
  • Remember: Line numbers in errors help you find exactly where the problem is
  • Common mistake: NameError often means you haven't defined a variable or made a typo in its name