CS110: Spring 2020

Intro to Computer Programming with Python

CS110: Spring 2020

Functions Continued: Third-Party Modules & Variable Scope

In this lesson, we’re going to go over some remaining function-related ideas including:

  1. Installing third-party modules using PIP (a command line tool to install third-party Python libraries).
  2. Understanding the idea of variable scope
  3. Getting a little more practice with creating functions

Please Complete the Following Tasks

1. Download the Exercise Files

Exercise Files

2. Review the Slides

  1. Third-Party Modules & Variable Scope
  2. Supplementary Slides for Live Lecture

3. Watch the Lecture Video(s)

Link Title Type Duration
Video 1 Variable Scope: Local Variables pre-recorded 9:38
Video 2 Variable Scope: Global Variables pre-recorded 7:09
Video 3 External Modules & PIP pre-recorded 19:35
Video 4 Practice with custom functions and modules lecture 1:30:17

4. Review / Study the Supplemental Materials

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

  1. What is PIP?. Python for Beginners