Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python initialize list length n

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 #initialize #list #length
ADD COMMENT
Topic
Name
3+3 =