What is the difference between a shallow copy and a deep copy of a nested list?
A shallow copy creates a new outer collection but keeps references to its existing elements. If those elements are lists, modifying an inner list through either outer collection affects the same inner...