append to the end of a dictionary

jay graves jaywgraves at
Tue Jan 24 15:50:13 CET 2006

Yves Glodt wrote:
> 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?

A dictionary doesn't have an 'end' because it is an unordered

> E.g:
> mydict = {'a':'1'}
> I need to append 'b':'2' to it to have:

mydict['b'] = '2'
print mydict


More information about the Python-list mailing list