CS110: Winter 2021

Intro to Computer Programming with Python

CS110: Winter 2021

Lessons > 18. Error Handling

In this lesson, we’re going to go over a few more examples of using files in the “real world.” This includes:

  1. reading files from disk and from the Internet,
  2. manipulating file data into usable formats, and finally
  3. writing files with the help of templates

We will also explore a new file format (HTML). In addition, we will also talk about error handling using try/except blocks.

Today's Activities

1. Download the Exercise Files

Exercise Files

2. Review the Slides

  1. More Files & Strings + Error Handling
  2. Supplementary Slides for Live Lecture

3. Review the Lecture Video(s)

Link Type Title Duration
Video 1 required L18a: Parsing file data 16:15
Video 2 required L18b: Error handling 12:37
Video 3 required L18c: More string functions 9:05
Video 4 required L18d: Templates 6:00
Video 5 required L18e: Templates: example 17:58
Video 6 required L18f: Retrieving files via HTTP/HTTPS 9:59
Video 7 lecture Live Lecture 48:12