Clarification of notation

Dave Angel davea at ieee.org
Thu Sep 30 10:37:33 EDT 2010



On 2:59 PM, Bruce W. wrote:
> So, this kind of notation would be different:
> args[0][2]
> verses args[[0][2]]
> the latter is multidimensional.  Can you think of example of using 
> this type of list?
> I  don't know why this had me a bit confused.  I've got to get into 
> programming more...  I had done more in the past.
> Bruce
>
>
The data in a multidimensional list (list of lists) would look like:

[ [3,5], [4,2,99] ]

But a reference to it would be
     args[1][2]

DaveA




More information about the Python-list mailing list