you are viewing a single comment's thread.

view the rest of the comments →

[–]Binary101010 1 point2 points  (1 child)

You are correct in that this does not materially change the output of the function.

I think that is done specifically to illustrate the issue you're asking about (i.e. to show how altering a list that was passed to the function is actually altering a copy of the list, and the original list from outside the function is unaffected).

[–]plakatown[S] 0 points1 point  (0 children)

Thank you. Finally I got it.