DeskFluent
Module 3 Pro7 min read

Reading error messages without panic

Errors are instructions, not insults. How to read them from the bottom up.

Here is the secret that separates people who learn to code from people who quit: nobody writes code that works first time. Not beginners, not professionals with twenty years in. Module 1 told you debugging is most of the job. The difference is entirely in what happens next. Beginners read the red text as you failed. Professionals read it as a delivery address for the fix.

Module 2 said spreadsheet errors like #N/A are instructions, not insults. Python errors are the same — just wordier, which, once you can read them, makes them far more helpful.

Meet a traceback

Run this broken code from the variables lesson:

age = input("How old are you? ") print(age + 1)

Type 25 when asked, and you get something like:

Traceback (most recent call last) line 2, in cell print(age + 1) TypeError: can only concatenate str (not "int") to str

Keep reading with Pro

You are reading the free preview. Module 1 of every course is free forever — Pro unlocks the rest of this lesson, every other module of every course, removes ads, and adds workbooks and certificates.