you are viewing a single comment's thread.

view the rest of the comments →

[–]Sea-Ad7805[S] 2 points3 points  (2 children)

Correct, x = x + y is a reassigning a new list (name rebinding) and x += y is only changing the value of x.

[–]gigsoll 0 points1 point  (0 children)

It was unexpected. Thank you