Pergunta de entrevista da empresa Glovo

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

Resposta da entrevista

Sigiloso

1 de ago. de 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.