Glovo interview question

- What is the difference between shallow and deep copy in Python?

Interview Answer

Anonymous

Aug 1, 2022

The first doesn't create a copy of the elements in a list, keeping the original pointers to elements. The second make sure the list and its elements are a copy.