append to the end of a dictionary

Yves Glodt y.glodt at
Tue Jan 24 09:37:07 EST 2006

Hi there,

I seem to be unable to find a way to appends more keys/values to the end 
of a dictionary... how can I do that?


mydict = {'a':'1'}

I need to append 'b':'2' to it to have:

mydict = {'a':'1','b':'2'}

How to do?

Best regards,

More information about the Python-list mailing list