Andre Engels wrote:
On Thu, Mar 5, 2009 at 7:46 PM, Andre Engels <andreeng...@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])

Which would be the verbose form of:

for x,y in datadict.items():
    plot(x,y)

T.

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to