Anthony Liu wrote:
I cannot figure out how to specify a list of a
particular size.

For example, I want to construct a list of size 10,
how do I do this?

A list does not have a fixed size (as you probably know)

But you can initialize it with 10 somethings
>
 >>> [None]*10
 [None, None, None, None, None, None, None, None, None, None]
 >>> range(10)
 [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
 >>>

Michael

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to