How do you do arrays

Kartic kartic.krishnamurthy at gmail.com
Tue Feb 1 14:06:57 EST 2005


Tom,

Before you use iMatrix[index], you have to tell python to use iMatrix
as an array. You will do that using iMatrix = [] *outside* the loop.

iMatrix = []
while index < majorlop1: # rest of the loop statements

Since you are new, please take a look at the Python tutorial to get you
started.
http://docs.python.org/tut/tut.html

Thanks,
-Kartic




More information about the Python-list mailing list