defining multi dimensional array

bruce bedouglas at earthlink.net
Wed Jul 5 00:33:24 EDT 2006


i tried to do 

a1[10][10] = ['a','q']

and get an error saying a1 is not defined....

-bruce


-----Original Message-----
From: python-list-bounces+bedouglas=earthlink.net at python.org
[mailto:python-list-bounces+bedouglas=earthlink.net at python.org]On Behalf
Of Erik Max Francis
Sent: Tuesday, July 04, 2006 9:14 PM
To: python-list at python.org
Subject: Re: defining multi dimensional array


bruce wrote:

> basic question..
> 
> how do i define a multi dimensional array
> 
>  a[10][10]
> 
> is there a kind of a = array(10,10)

It's just a list of lists.

-- 
Erik Max Francis && max at alcyone.com && http://www.alcyone.com/max/
  San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
   Have you ever loved somebody / Who didn't know
    -- Zhane
-- 
http://mail.python.org/mailman/listinfo/python-list



More information about the Python-list mailing list