1. Instructions

In this lab, you have three tasks:

  • Think about what python would display section 3.
  • Draw environment diagrams for the code in section 4.
  • Complete the required problems described in section 5 and submit your code with Ok, as instructed in lab00. The starter code for these problems is provided in lab01.py, which is distributed as part of the homework materials.

Submission: As instructed before, you need to submit your work using either the VSCode plugin or by running Ok with python ok --submit. You are allowed to submit multiple times before the deadline, and your score on this assignment will be the highest out of all your submissions.

Readings: You might find the following sections in the textbook useful: