Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python copy list

a=[1,2,3,4]
b=a[:] 
''' now b has all elements of  a'''
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #copy #list
ADD COMMENT
Topic
Name
3+4 =