Note: I know it’s cold. I’ll be in the Auditorium like normal unless NU cancels classes. If you don’t feel safe going outside, keep in mind that I record lectures and you can complete the Mini-Quiz by watching the recording and then taking the Mini-Quiz on Canvas (linked below) before Sunday at 11:59:00pm CST rather than participating through PollEverywhere in-person. If you’d like to come to class but don’t want to walk, keep in mind the Frostbite Shuttle is running. For the un-initiated among you some general cold weather safety tips!
One of the main advantages to building a machine to automate something is that once we figure out how to do it once…we never need to worry about those exact steps again. But…imagine you build an oven that always heats to 350 degrees.
What if you want to bake something at 400 degrees?
Would you really make a whole new oven that only bakes at 400 degrees? Or could you add some knob / option to allow the oven to bake at either 350 or 400 degrees? Which one sounds more reasonable to you?
Today we’ll continue our discussion of defining our own functions with a special emphasis on writing flexible functions. One of the main advantages to building a machine to automate something is that once we figure out how to do it once…we never need to worry about those exact steps again!
In-Class Resources
| Link | Title | Type | Duration |
|---|---|---|---|
| Video 1 | Live Lecture Recording | lecture | 50:00 |
1. Mini-Quiz 4: Writing Functions
If you did not participate in class or were unable to attend then you can use this Canvas Quiz as a substitute.