+ 2

why are the id( ) of two lists same when a variable has been used to copy a list that is stored in another variable?

13th Mar 2020, 12:07 PM
sai
2 odpowiedzi
+ 2
This is because all objects in Python has its own unique id which is assigned to the object when it is created.
13th Mar 2020, 12:11 PM
Arsenic
Arsenic - avatar
0
Yes
13th Mar 2020, 8:30 PM
Agboola Stephen Praise
Agboola Stephen Praise - avatar