Topic 4 trying and excepting Errors

Trying and Excepting in Python

Figure 4.1: Trying and Excepting in Python

Here, I introduce three new keywords that I think are relevant to the week’s lecture (i.e., week 5 - the week after Chinese New Year):

  1. try
  2. except
  3. finally

I also briefly mention about a few of Python’s built-in error types (i.e., exceptions).