Adding to a Dictionary

Keenan Crane kcrane at uiuc.edu
Sun Jan 26 12:59:04 EST 2003


I'm just starting out with Python and I'm having trouble figuring out 
how to add an entry to an already created dictionary.

I'm looking for something like

myDict.append('key', 'value')

Are dictionaries even mutable?  If not, how do you usually solve this 
problem?

Thanks,

Keenan Crane
kcrane at uiuc.edu





More information about the Python-list mailing list