CS110: Fall 2021

Intro to Computer Programming with Python

CS110: Fall 2021

Lessons > 14. For Loops

Today, we will be introducing the “for loop” and using it to work with lists and sequences. We will also be exploring some different looping algorithms: applying while and for loops to do various kinds of computations.

Today's Activities

For today, please do the following:

1. Download the Exercise Files

Exercise Files

2. Review the Slides

  1. More Loops: For Loops & Lists
  2. Supplementary Slides for Live Lecture

3. Watch the Lecture Video(s)

Link Title Type Duration
Video 1 Intro to for loops pre-recorded 8:14
Video 2 Break and continue pre-recorded 6:40
Video 3 The range function pre-recorded 8:54
Video 4 Looping algorithms pre-recorded 14:02
Video 5 Practice w/looping algorithms lecture 48:50

4. 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/159816