Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to create an empty list of certain length in python

>>> l = [None] * 10
>>> l
[None, None, None, None, None, None, None, None, None, None]
 
PREVIOUS NEXT
Tagged: #create #empty #list #length #python
ADD COMMENT
Topic
Name
2+6 =