List as objects (5)
Consider:
a = [1, 2, 3]
b = a
print id(a)
print id(b)
b[0] = 5
print id(a)
print id(b)
print a
which prints:
135445132
135445132
135445132
135445132
[5, 2, 3]
represented by the state diagram (at the end of the program), i.e.
changing b
affects
a
: