Problem Set 4 - Due Tue Feb 22 at 23:00


  1. Slides and notebooks from Lec 3/4/5, Lec 6, and Lec 7
  2. Problems and solutions from Lab 3 and Lab 4
  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. Think Python, Chapter 3 and Think Python, Chapter 6 cover material on functions which remains relevant; section 6.4 is especially relevant now, although sections 6.5 and 6.6 are still stuff that we're going to introduce later.
  5. Think Python, Chapter 5 covers booleans and conditionals, although sections 5.8 through 5.10 cover recursion which we will save for later, so you can skip those for now.


The instructions for each task:

About this Problem Set

This problem set will give you practice with the use of booleans and conditionals. You will also continue to define your own functions.

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


Time Estimate

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

How to turn in this Problem Set