CS110: Spring 2025

Intro to Computer Programming with Python

CS110: Spring 2025

Lessons > 13. More on Files & Strings + 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

For today, please do the following:

1. Download the Exercise Files

Exercise Files

2. Review the Slides

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

3. Watch the Lecture Video(s)

Link Title Type Duration
Video 1 Parsing file data pre-recorded 19:27
Video 2 Error handling pre-recorded 12:28
Video 3 More string functions pre-recorded 12:28
Video 4 Templates pre-recorded 9:06
Video 5 Templates: example pre-recorded 16:58
Video 6 Retrieving files via HTTP/HTTPS pre-recorded 11:34