Initializing a list to a known number of elements in Python

arrays, list, python

Solution

The first thing that comes to mind for me is:

verts = [None]*1000

But do you really need to preinitialize it?

Problem

Right now I am using a list, and was expecting something like: ``` verts = list (1000) ``` Should I use array instead?

Original source

Related problems