basic python list/dict/key question/issues..

Roger rdcollum at gmail.com
Tue Jan 13 18:33:42 CET 2009


On Jan 13, 11:59 am, "bruce" <bedoug... at earthlink.net> wrote:
> Hi..
>
> quite new to python, and have a couple of basic question:
>
> i have
>  ("term":["1","2","3"])
>
> as i understand it, this is a list, yes/no?
>
> how can i represent this as a dict/list?
>
> i've got a few of these that i'm trying to deal with..
>
> thanks
x = {"term":["1","2","3"]} is a dictionary and the value of the key
"term" is a list.



More information about the Python-list mailing list