Skip to content

Errors & testing

Three kinds of error

  • A syntax error breaks the rules of Python, so the code will not run.
  • A runtime error crashes the program while it is running.
  • A logic error runs fine but gives the wrong answer.

Syntax, runtime and logic errors and how each one shows up

Handout

Log in or create account

IGCSE, A-Level & AP