Value copies and shared references
Which outer list shows the added value?
Examples
Worked example
Input
Two outer lists share an inner list. Append to the inner list.
Expected output
Both.
Hints and solution
Hint 1
Write down the starting state and walk through one example by hand.
Reveal worked answer
They both still refer to the same inner list, which was changed in place.