I recommend drawing the memory diagram as you execute each of the following programs.
What does the following program print?
def z0(y):
0] = 4
y[return y
= [5, 6]
b = z0(b)
c print(b[0], c[0])
What does the following program print?
def z4(d1, d2):
= d1
a = {}
d1 = d2
d1 "A"] = 2
d1[return a
= {"A": 4, "B": 6}
a = {"A": 6, "B": 11}
b = z4(a, b)
f print(a["A"], b["A"], f["A"])