- What is the use of an environment diagram? What does it keep track of?
- What are the steps to evaluate a def statement?
- When executing a call expression, you draw and label a new frame after evaluating the operator and operands. What is the first thing you write inside the new frame?
Fill in the blanks so that
61a alternate printing for a total of
Try drawing an environment diagram for this snippet of code from question 2.2 on today’s discussion worksheet:
You can check your work on Python Tutor. We’ll also go over it at the beginning of discussion next week.