2D Arrays

Jad Courbage jad at altern.org
Sat Sep 9 13:48:57 EDT 2000


Hi,

Could anybody tell me the command to build a 2D array ? (without using the
NumPy module)

I tried something like :

for i in range(0,5):
     for j in range(0,10):
          arr[i][j]=i*j

but it doesn't work !
Do i have to declare the array ?

Thanks.


jad.





More information about the Python-list mailing list