adding to dictionaries

Oleg Broytmann phd at emerald.netskate.ru
Thu Sep 2 05:49:19 EDT 1999


On Thu, 2 Sep 1999, Gerhard W. Gruber wrote:
> Is it possible to add an entry to an already existing dictioniary?

   But of course!

d["new entry"] = new_value

   To remove an entry:

del d["the entry"]

> -- 
> bye,
>    Gerhard
> email: sparhawk at eunet.at
>        g.gruber at xsoft.co.at

Oleg.
---- 
    Oleg Broytmann        Netskate/Inter.Net.Ru        phd at emerald.netskate.ru
           Programmers don't die, they just GOSUB without RETURN.





More information about the Python-list mailing list