Problem Set 7 - Due Tue Apr 5 at 23:00

Reading

  1. Slides and notebooks from Lec 14 (Testing & Debugging), Lec 15 (File Input/Output), and Lec 16 (Directories).
  2. Problems and solutions from Lab 8 (Tracing, Testing, and Files).
  3. Think Python, Appendix A talks about debugging, and Think Python, Chapter 14 covers files; we only discuss sections 14.1-14.5, although section 14.10 is also useful. The textbook does not have a chapter about testing.

Tasks

The instructions for each task:


About this Problem Set

This problem set will give you practice with list comprehensions, nested loops, and file input/output, with some practice on directories and the os module as well.

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.5-4 hours, and our estimate for total time spent across all tasks is 7–10 hours, plus up to an hour of reading.


How to turn in this Problem Set