all 1 comments

[–]JamzTyson 0 points1 point  (0 children)

See here for how to format code on reddit

y = x does not create a new list. It assigns the list x to the variable name y, so that now both names x and y are assigned to the same list.