Frage im Vorstellungsgespräch bei Glovo

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

Antwort im Vorstellungsgespräch

Anonym

1. Aug. 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.