Environment Diagrams

The questions below are due on Friday June 21, 2024; 10:00:00 PM.
 
You are not logged in.

Please Log In for full access to the web site.
Note that this link will take you to an external site (https://shimmer.mit.edu) to authenticate, and then you will be redirected back to this page.

Link to relevant readings:
-- indexing
-- tuples
-- lists

Consider the following environment diagram:
Complete the Python statement below so that executing it would result in the structure shown above in memory.
 
x =

Drawing Environment Diagrams

Consider the following program:
a = [0, "6s090", 5.5]
b = (a, "this")
a.append("end")
b[0][1] += " is so fun"
Walk through the program above step by step using an environment diagram that you draw yourself. Then create an environment diagram using the interface below that shows the state of program memory once all of the instructions above have run:
ℹ️
🗑️
Next Exercise: Loops
Back to exercises