Yi Xing wrote:
> On a related question: how do I initialize a list or an array with a
> pre-specified number of elements, something like
> int p[100] in C? I can do append() for 100 times but this looks silly...
> 
> Thanks.
> 
> Yi Xing

Use [0]*100 for a list.

THN

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

Reply via email to