DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
python for loop inside list
myList = [] for i in range(10): myList.append(i) # is equivalent to myList = [i for i in range(10)]
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#python
#loop
#list
ADD COMMENT
Topic
COMMENT
Name
8+9 =
Submit