Lessons > 8. Modules and Variable Scope
In today’s pre-recorded lectures, we are going to go over:
- Modules: a way of organizing and reusing code, and
- Variable scope: what parts of memory can your program access at any given time?
In live lecture, we will review the diamond exercise and make sure you feel confident with variable scope and the idea of “modules.”
Today's Activities
For today, please do the following:
1. Download the Exercise Files
Exercise Files2. Review the Slides
3. Watch the Lecture Video(s)
Link | Title | Type | Duration |
---|---|---|---|
Video 1 | Modules | pre-recorded | 20:05 |
Video 2 | Variable Scope | pre-recorded | 16:43 |
Video 3 | The diamond challenge | lecture | 49:18 |
4. Review / Study the Supplemental Materials
Note: these readings / videos are suggested for additional context / examples, but not required.
-
Heinold
Ch12: Modules.
Skim sections 12.1 through 12.4.
5. Take the Practice (Ungraded) Quiz
Note: The quiz is to help you test your own understanding
of the concepts. It is not graded, and is designed to help you to see
what you already know and what you should review / ask about.
https://canvas.northwestern.edu/courses/149580/quizzes/159821