🧩Error
Also known as Programming Error
A problem that stops code from working. Some stop it early, some mid-run.
Think of it like
Think of it like a smoke alarm going off. It tells you something is wrong and roughly where to look.
Example
Emma's program stops with ZeroDivisionError on line 2. The list of scores was empty, so it tried to divide by zero.
Why it matters
An error message is a clue, not a scolding. Reading it carefully is the fastest way to a fix.
Definition
Example code
python
>>> 10 / 0
ZeroDivisionError: division by zeroCommon mistake
Key takeaways
- 1Three kinds. Before it runs, while it runs, or silent.
- 2Read the message. It names the problem and the line.
- 3A clue, not a fail. Every developer sees errors every day.