Step 1 of 6

Step 1 · Read and run

Break it on purpose

Every programmer makes mistakes, every day. What matters is being able to read the error message and fix the problem.

This program has a mistake in it: the text isn't closed. Run it anyway and read what comes back. Notice three things:

  • the line number where Python got stuck
  • the plain-English explanation
  • What Python said, which is the message you'd see in any Python tool
Run the program and read the error to carry on.
broken.py

Output

Press Run to see what your program prints.