DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
7+4 =
Submit