Lesson 8: The function of functions

Outline:

  1. The function of functions
    • defining a function
    • passing parameters
    • Exercise 1
  2. Functions that return values
  3. Recap: values and side effects

Explore after class:

  1. More practice with functions

Want more practice?

  1. Runestone:
  2. Codingbat:

Reading assignment (to be completed by the next class):

  • Zelle sections 6.1-6.5 (pp. 175-193)