跳到主要内容

Errors & testing

English

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

讲义

登录或创建账户

IGCSE, A-Level & AP