adding to dictionaries

Michael Hudson mwh21 at cam.ac.uk
Thu Sep 2 05:55:38 EDT 1999


"Gerhard W. Gruber" <g.gruber at xsoft.co.at> writes:

> Is it possible to add an entry to an already existing dictioniary?

Umm... yes?

d={1:2}
d[2]=3

d[2] => 3

although I can't help thinking that's not what you're asking...

confused-ly y'rs,
Michael




More information about the Python-list mailing list