Problem Set 2 - Due Tue Feb 8 at 23:00

Reading

  1. Lecture 3/4 slides and notebook
  2. Problems and solutions from Lab 2.
  3. Think Python, Chapter 3 covers functions, and Think Python, Chapter 6 covers fruitful functions, although sections 6.4 through 6.6 are material that we'll cover later.
  4. If you prefer an audio format, our podcast The Path to Programming has an episode for this week on Defining Functions.

Note that many of the same materials from last week are relevant this week again.


Tasks

The instructions for each task:


About this Problem Set

This problem set will give you practice with defining custom functions both for text-based interactive programs and for either drawing in turtle graphics or audio with wavesynth.

Although there are four tasks listed above, you only need to complete three of them: the first two tasks, plus your choice of either the third or fourth task.

If you want to find a partner to work with for this problem set, use this Google Sheet to do so.

Reminders

Time Estimate

Our per-task estimate for this pset is 1-2.5 hours, and our estimate for total time spent across all tasks is 4–8 hours, plus up to an hour of reading.


How to turn in this Problem Set