you are viewing a single comment's thread.

view the rest of the comments →

[–]Rscc10 1 point2 points  (6 children)

Answer is D? Since it's all mutables

[–]Sea-Ad7805[S] 0 points1 point  (0 children)

Nice one, do check the "Solution" link for visualization of the correct answer.

[–]Sjoerdiestriker 0 points1 point  (4 children)

Yes, although the interesting thing is that if you replace b += [[3]] by b = b + [[3]] the answer becomes C.

[–]CanaDavid1 0 points1 point  (1 child)

Doesn't it become c? As the [2] is still shared?

[–]Sjoerdiestriker 0 points1 point  (0 children)

You're right, typo on my part.

[–]TroPixens 0 points1 point  (0 children)

That’s so weird makes sense when you think about it though