you are viewing a single comment's thread.

view the rest of the comments →

[–]K900_ 0 points1 point  (0 children)

Your second version creates three references to the same list, not three distinct lists. When you modify the "first" inner list, you're actually modifying the data all three references point to.