</> syntax.

PYTHON / TRACEBACKS / OPEN LESSON

How to read a Python error

A traceback shows where Python stopped. Read the last line for the error type, then inspect the line it names. The example below starts with a defined value; edit the name to make a deliberate NameError, then restore it and run.

Try it in the Python runner

01 / RUN PYTHON

Change one small thing.

Python starts on the first run.

Python executes in an isolated browser sandbox. This guest mini lesson does not need an account and does not save course progress.

CONTINUE / KEEP LEARNING

That was one useful step.

Try lesson 001 and continue through the guided Python path. Python is the only complete guided course right now.

Continue in Syntax