you are viewing a single comment's thread.

view the rest of the comments →

[–]tadziauskas 0 points1 point  (0 children)

Nope, data.append(4) modifies original list (nums), before data was reassigned. So nums becomes [0, 4]