Newbie help with array handling

bruce peng promagian at gmail.com
Thu Apr 12 04:25:19 EDT 2007


use dir with list nested

for example:
{key1 : [value1, value2, value3], key2 : [value1, value2, vlaue4]}


"loial" <admin at loial.co.uk> wrote in message 
news:1176364734.439383.252930 at o5g2000hsb.googlegroups.com...
>I am new to python and am converting an awk script to python
>
> I need to store some data in an array/table of some form
>
> keyvalue1, value1, value2, value3
> keyvalue2, value1,value2, value3
> keyvalue3, value1,value2,value3
> etc
>
> I will later need to sort in keyvalue order and also need to be able
> to check if a key already exists
>
> It is not clear how to do this in python. All the examples I see have
> just a key and a single value
> 





More information about the Python-list mailing list