Declare list of large size
Aaron Ginn
aaron.ginn at motorola.com
Mon Mar 18 17:44:14 EST 2002
Perhaps I've just glossed over this in the documentation, but what is
the simplest way to declare a list of large size? Is there something
analogous to the following in C:
int list[100];
I can do this by doing the following:
list = []
i=0
while i < 100:
list.append[0]
i = i + 1
which will give me a list 100 elements long with all values
initialized to 0, but I'm assuming there has to be an easier way to do
this? Am I correct in this assumption?
Thanks,
Aaron
--
Aaron J. Ginn Phone: 480-814-4463
Motorola SemiCustom Solutions Pager: 877-586-2318
1300 N. Alma School Rd. Fax : 480-814-4058
Chandler, AZ 85224 M/D CH260 mailto:aaron.ginn at motorola.com
More information about the Python-list
mailing list