CS110: Fall 2021

Intro to Computer Programming with Python

CS110: Fall 2021

Lessons > 19. 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 L19a: Parsing file data pre-recorded 16:15
Video 2 L19b: Error handling pre-recorded 12:37
Video 3 L19c: More string functions pre-recorded 9:05
Video 4 L19d: Templates pre-recorded 6:00
Video 5 L19e: Templates: example pre-recorded 17:58
Video 6 L19f: Retrieving files via HTTP/HTTPS pre-recorded 9:59
Video 7 Practice with try/except lecture 49:16