Events!

We’re going to spend most of our time reviewing loops and conditionals today. However, in the last bit of class we’ll talk about one last topic in Control Flow: the idea of event listeners. These “listeners” are just special functions that we write for Python to run when it hears certain events. This could be something like a mouse click or someone typing on the keyboard…or you can think of something more advanced like a thermometer dropping below a certain value or a toner cartridge becoming empty.

Though today we’ll focus our time on MOUSE events, next week we’ll talk about KEYBOARD events.


Today's Resources

1. Exercise Files

Download Exercise Files

2. Slides

3. Pre-Recorded Lecture Video(s), Mini-Quizzes, and Live Recordings

Available Videos
Link Title Type Duration
Video 1 Live Lecture Recording lecture 50:00

4. Mini-Quiz 9: Conditionals and Loops

If you did not participate in class or were unable to attend then you should use this Canvas Quiz as a substitute after watching the recorded lecture (posted after class).