arrays

Diez B. Roggisch deetsNOSPAM at web.de
Mon Nov 15 14:00:05 EST 2004


Rahul Garg wrote:

> Hi.
> Is there someway i can get something similar to multi-dimensional
> arrays in python.I dont want to use Numarray.
> rahul

Use lists in lists.

>>> foo = [[1,2], [3,4]]
>>> print foo[0][1]
2


-- 
Regards,

Diez B. Roggisch



More information about the Python-list mailing list