Initializing a list to a known number of elements in Python [duplicate]

The first thing that comes to mind for me is:

verts = [None]*1000

But do you really need to preinitialize it?

Leave a Comment