Skip to content

Errors are messages

Python · Free lesson · No account needed

Step 1 of 9 · Start here

Errors are messages

Start here

Every programmer gets errors, every day. An error isn't a sign you're bad at this: it's Python telling you what it couldn't do, and where.

Read the message from the last line: it names the error. Two you'll meet most:

  • SyntaxError: Python can't read the code at all, such as a missing bracket
  • NameError: Python doesn't know a name, often because of a typo

You’re trying a free lesson. Your progress saves on this device. Create a free account to keep it everywhere and ask the AI tutor.