DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
Create an identical list from the first list using list comprehension.
lst2 = [i for i in lst1]
Source by holypython.com #
PREVIOUS
NEXT
Tagged:
#Create
#identical
#list
#list
#list
ADD COMMENT
Topic
COMMENT
Name
7+2 =
Submit