Videos and Reading (online and textbook):
All of the following are required except any items labeled Optional are, well, optional
(i.e., things that may be interesting but do not directly pertain to your success in this course).
- Box-and-Pointer Diagrams and Mutable Objects
- Lists are Mutable
- Textbook reading: RE-read Section 6.1.4 —
List References (bottom of page 281, 1 page).
Focus your attention on:
- List variables, like all variables, refer to their (list) objects.
- Since a list object is a mutable container, it's “insides” can be changed
as shown in the right-hand-side of Figure 2 on page 281.
- The right-hand-side of Figure 2 on page 281 shows how an assignment of an element of a list
does NOT change what the list variable itself refers (points) to.
Rather, it MUTATES the list, i.e., changes the insides of the list.
- Box-and-Pointer Diagrams and Mutable Objects — Exercise