Skip to lesson
  1. Learn
  2. See
  3. Try
  4. Make

Read an error message properly

What this lesson is about

Find the line, the cause and the fix inside a wall of red text, from the bottom upwards.

Your program stops and fifteen red lines fill the screen. You have ten minutes. Where do you look?

Why this matters

The Python tutorial says the last line of the error tells you what happened. The lines above it show where. Reading upward from there beats reading the whole wall.

Lesson 3 of 10 on Coding for evaluation worknextRun a test and read the resultPart 1 ends in a work sample you can sendThe rules this work sample is read against

Read the primary or official source: Python documentation · errors and exceptions