A row of small glass specimen jars on a wooden shelf, each holding a different coloured model beetle, like a collector cabinet of bugs.

Coding

Common Python errors and what they mean

Common Python errors for beginners explained: what SyntaxError, NameError, TypeError, IndexError, IndentationError and more mean, with real messages and fixes.

A brass magnifying glass held over a laptop of dark-theme code, enlarging one line highlighted in red, while a small ladybird sits on the edge of the keyboard.

Coding

How to debug Python code as a beginner

How to debug Python code as a beginner: read a traceback bottom up, check values with print, step through with breakpoint() and fix one error at a time.