Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

copy a list python

new_list = old_list.copy()
# or
new_list = old_list[:]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #copy #list #python
ADD COMMENT
Topic
Name
3+1 =