Inverse of dict(zip(x,y))

Andre Engels andreengels at gmail.com
Thu Mar 5 13:46:44 EST 2009


On Thu, Mar 5, 2009 at 7:46 PM, Andre Engels <andreengels at gmail.com> wrote:

> If the dict = {key1: val1, key2: val2, ...}, you can do:
>
> for key in dict:
>    plot(key,dictionary[key])

Of course I meant:

for key in dict:
   plot(key,dict[key])



-- 
André Engels, andreengels at gmail.com



More information about the Python-list mailing list