Lessons > 11. While Loops
In this lesson, we’re going to go over while loops – a way of allowing your program to repeat code for a specified number of iterations. Being able to repeat code blocks (also know as “looping” or “iterating”) is very powerful, and will allow you to easily perform repetitive tasks in a variety of different contexts: playing songs, drawing pictures, building animations, doing data processing, and so forth. I also highly recommend that you read Chapter 5 in the Severance (Python for Everyone), for additional review.
Today's Activities
1. Download the Exercise Files
Exercise Files2. Review the Slides
3. Review the Lecture Video(s)
| Link | Type | Title | Duration |
|---|---|---|---|
| Video 1 | required | Introduction to loops | 7:23 |
| Video 2 | required | While loops example | 15:30 |
| Video 3 | required | Loops & Lists | 15:11 |
| Video 4 | lecture | Live Lecture | 52:58 |
4. Review the References & Supplemental Materials
Note: these readings / videos are suggested for additional context / examples, but not required.
-
Severance
Ch5: Iteration.
reading • video - Ch7: Iteration. ThinkCS