main python-basics/lessons/08-errors-and-how-to-read-them

README.md

Lesson 8: Errors and how to read them

This lesson covers errors and how to read them. You'll read a short explanation, try three small exercises and finish with a quiz.

Full lesson: https://glibcode.net/courses/python-basics/lessons/8

Files

  • errors.py: reading a traceback and catching exceptions

Tip: help(len) in the interpreter shows the documentation of any function.

Tip: Run python3 -i file.py to stay in the interpreter after the program ends and poke at the variables.

Run it

python3 errors.py

Exercises

See exercises.md. Ask in the forum once you've tried.