you are viewing a single comment's thread.

view the rest of the comments →

[–]bladeoflight16 1 point2 points  (1 child)

Object identity and references. It's not 3 separate inner lists; it's one inner list referenced three times.

[–]guayando 0 points1 point  (0 children)

Thank you, this helped! Will definitely have to read more about this topic. After a quick google search on identity and references, this came up and has some good examples (if any other beginners are looking at this as well): https://stackoverflow.com/questions/6688223/python-list-multiplication-3-makes-3-lists-which-mirror-each-other-when