Week3 exercise7 why need deepcopy

It seems that don’t use copy.deepcopy also works fine.
So why use the copy.deepcopy?

1 Like

They have changed the test cases so that is no longer necessary on this exercise. But the explanation of why the deepcopy is helpful is on this thread.

Thanks, I looked up your explanation. It’s very helpful.