Today we’ll combine the ideas of loops and conditionals to do more graphics work. It will further extend our ability to do repeated tasks in Python and serve as the foundation for animation in Python.
Note: The Drawing Mario video is LONG. Instead of watching the whole thing, watch the first bit and see if you get the gist. Then try to take the STARTER file in the lecture files for today and turn it into the FINAL file by completing the two function definitions. This is BY FAR the hardest things we’ve done with loops so-far and will be much more difficult than the loops we’ll need for Tutorial 4 and Homework 5. If you find it confusing…come with questions to class or post on edSTEM!
Today's Resources
1. Exercise Files
Download Exercise Files2. Slides
3. Pre-Recorded Lecture Video(s), Mini-Quizzes, and Live Recordings
Link | Title | Type | Duration |
---|---|---|---|
Video 1 | Intro | pre-recorded | 5:00 |
Video 2 | Drawing Mario! | pre-recorded | 20:00 |
Video 3 | Intro to Animation (MQ - No Longer Available) | video_quiz | 5:00 |
4. Supplemental Materials
- Severance - Ch5: Iteration – (Reading • Video)
- Ch7: Iteration. ThinkCS