Python Shallow Copy VS Deep Copy

preview_player
Показать описание
In this video, you will learn the difference between shallow copy and deep copy and how both affects in memory allocation for each copied variable.

Рекомендации по теме
Комментарии
Автор

In deep copy, before changing the element of the list5, if I print the ids of both list3 and list5 of respective elements, they return the same address. But if you change any element then only a new memory address will be allocated to that particular element

purushottampendse