CS110: Spring 2025

Intro to Computer Programming with Python

CS110: Spring 2025

Lessons > 6. Modules and Variable Scope

In today’s pre-recorded lectures, we are going to go over:

  1. Modules: a way of organizing and reusing code, and
  2. Variable scope: what parts of memory can your program access at any given time?

Today's Activities

For today, please do the following:

1. Download the Exercise Files

Exercise Files

2. Review the Slides

  1. Modules
  2. Variable Scope
  3. Supplementary Slides for Live Lecture

3. Watch the Lecture Video(s)

Link Title Type Duration
Video 1 Modules pre-recorded 26:34
Video 2 Variable Scope pre-recorded 17:39

4. Review / Study the Supplemental Materials

Note: these readings / videos are suggested for additional context / examples, but not required.

  1. Heinold Ch12: Modules.
    Skim sections 12.1 through 12.4.