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!
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 | Live Lecture Recording | lecture | 50:00 |
4. Supplemental Materials
5. Mini-Quiz 4: Writing Functions
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).