CS110: Winter 2021

Intro to Computer Programming with Python

CS110: Winter 2021

Schedule > 4. Intro to Lists & Tuples; Intro to Functions

Week 3: Wed, Jan 20

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 Files

2. Review the Slides

  1. The Command Line, Running Python, Lists & Tuples
  2. Intro to Functions
  3. 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.

  1. Severance Ch9: Lists.
    readingvideo
  2. Severance Ch10: Tuples.
    readingvideo
  3. Severance Ch4: Functions.
    readingvideo
  4. 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