Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python create list of specific length

# Creating an empty list:
>>> l = [None] * 10
>>> l
[None, None, None, None, None, None, None, None, None, None]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #create #list #specific #length
ADD COMMENT
Topic
Name
6+4 =