list.copy() what is mean in python ? | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
+ 3

list.copy() what is mean in python ?

list.copy() what is mean in python ?

11th Aug 2018, 5:17 PM
Tamer Softah
Tamer Softah - avatar
5 Respuestas
+ 5
list is mutable, but a tuple isimmutable. This means that you can reassign or delete a entire tuple, but you cannot do the same with list.
13th Aug 2018, 10:58 AM
Yesh Jadav
Yesh Jadav - avatar
+ 4
list and copy are different... in list 0 you can make a list of number or words etc....but for now create another list1 just keep it copy and copy is to copy the list 0 to list1.
12th Aug 2018, 11:18 AM
Yesh Jadav
Yesh Jadav - avatar
+ 3
Run "help(list.copy)" at the Coding Playground to see this: "Return a shallow copy of the list."
11th Aug 2018, 6:38 PM
Eduardo Petry
Eduardo Petry - avatar
11th Aug 2018, 10:16 PM
Danny Dreger
Danny Dreger - avatar
+ 2
what is the difference between tuple and list
13th Aug 2018, 10:08 AM
Abhinaya
Abhinaya - avatar