runtime error

An error that happens while a program is running, such as dividing by zero or using an undefined name, raised as an exception.

In more detail

The syntax was fine, so the program started and ran until the bad line executed; code before it has already run. Python reports it with a traceback. A logic error is different again: the program runs without complaint but gives the wrong answer.

Related terms

Taught in

References