# 102 | Copy Vs Shallow Copy vs Deep Copy in Python | Python Tutorial in Tamil

preview_player
Показать описание
Copy Vs Shallow Copy vs Deep Copy in Python | Python Tutorial in Tamil

A shallow copy creates a new object which stores the reference of the original elements.

So, a shallow copy doesn't create a copy of nested objects, instead it just copies the reference of nested objects. This means, a copy process does not recurse or create copies of nested objects itself











__________________________________________________
like our face book page..
--------------------------------------------------------------------------------
send request our channel official facebookprofile...
---------------------------------------------------------------------------------

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

It's very clear and I will never forget this concept after watching this video.

sriramss
Автор

Superb explanation sir. Got confusion with copy and deepcopy. Watched many videos. My doubt got cleared only after watching your video. Well explained patiently. Thank you sir.

samusathish
Автор

This video watch again and again..finally clear understand about this

poorni.c
Автор

Anna super Ennakku clear ra understand panni kitta ....tq so much Anna

dharanivijayakumar
Автор

i watched many videos about this topic but i didn't get any idea....then i thought okay lets watch motherlanguage(tamil) then only i will get idea...after that i searched ..i saw ur explanation many videos

saisuba-vy
Автор

Clear and cut explanation.. didn't expect

narakavidk
Автор

I understand this copies
Anna oru help pls tell me the difference between append and extend
because both are able to insert more then 1 elements in a list then what is difference between them ?

theyaghu
Автор

ithu list la mattum tha implement panna mudiyuma ?

hanush
Автор

Screen sariya theriyala bro increase the font size and focus the cam on the area where you are typing

tamildev_
Автор

Sir please explain the deep copy once again

MegaRaja-eilw
Автор

Bro python la threading basic soluga bro

naveen.a
Автор

Bro python la threading puriyala bro enoru video potuka bro pls 🙏🙏🙏🙏🙏

naveen.a
Автор

Copy.deepcopy() - It work on the nested list and able to see the index[0] on both variable memory address changes, but in the normal list I won't see any difference. Kindly clarify my doubts.
a = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]
b = ""
b = copy.deepcopy(a)

b
[[1, 2, 3], [4, 5, 6], [7, 8, 9]]
id(a)
1667465466688
id(b)
1667465465600
id(a[0])
1667465407040
id(b[0])
1667465329024
c = [1, 2, 3, 4, 5]
id(c)
1667465399744
d = copy.deepcopy(c)
d
[1, 2, 3, 4, 5]
id(d)
1667465467264
id(c)
1667465399744
id(c[0])
1667424256240
id(d[0])
1667424256240

premkumarms
join shbcf.ru