[Tutor] Addind items to dictionaries

Bernard Lebel python at bernardlebel.com
Mon Oct 4 15:02:46 CEST 2004


Sorry for the basic question, but I can't seem to be able to retrieve it in the documentation... how
do you add an item (key + value) to an existing dictionary?

oModelPathDictionary = {}
oModelPathDictionary.append( 'myKey': 'myKeyValue' )

I always get errors when doing this.


More information about the Tutor mailing list