Schedule > 4. Intro to Lists & Tuples; Intro to Functions
In this lesson, we will review several different concepts intended to get you up-to-speed for Homework 2, which includes: (1) working on the command line (also see command line cheatsheet), (2) reviewing some different ways of running python files, (3) learning about lists and tuples, and (4) introducing functions. Because this quarter has 4 fewer class sessions, the next two lessons have a lot of material to cover.
In the next lesson (Lesson 5), we will practice building our own functions and modules. This week’s tutorial (Tutorial 2) and homework (Homework 2) will be based on content reviewed in this lesson and the next one. You are strongly encouraged to review the content in these lessons before trying the lab/homework.
Today's Activities
1. Download the Exercise Files
Exercise Files2. Review the Slides
- The Command Line, Running Python, Lists & Tuples
- Intro to Functions
- Supplementary Slides for Live Lecture
3. Review the Lecture Video(s)
| Link | Type | Title | Duration |
|---|---|---|---|
| Video 1 | recommended | Demo: Working with the Command Line (recommended) | 12:24 |
| Video 2 | recommended | Demo: 3 Ways to Execute Python (recommended) | 05:46 |
| Video 3 | required | Lists & Tuples | 9:40 |
| Video 4 | required | Intro to Functions: Part 1 | 15:50 |
| Video 5 | required | Intro to Functions: Part 2 | 15:32 |
| Video 6 | recommended | Practice Using Built-In Functions (recommended) | 21:02 |
| Video 7 | lecture | Live Lecture | 51:10 |
4. Review the References & Supplemental Materials
Note: these readings / videos are suggested for additional context / examples, but not required.
-
Severance
Ch9: Lists.
reading • video -
Severance
Ch10: Tuples.
reading • video -
Severance
Ch4: Functions.
reading • video - Heinold Ch4: Functions.
5. Do the Practice Quiz (Exercises)
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/130514/quizzes/132651