Yves Glodt: >I seem to be unable to find a way to appends more keys/values to the end >of a dictionary
A dictionary has no order, and therefore no end.
>mydict = {'a':'1'}
>
>I need to append 'b':'2' to it to have:
>
>mydict = {'a':'1','b':'2'}
>
>How to do?
Like this:
>>> mydict = {'a':'1'}
>>> mydict['b'] = '2'
>>> print mydict
{'a': '1', 'b': '2'}
>>> {'a': '1', 'b': '2'} == {'b': '2', 'a': '1'}
True
--
René Pijlman
--
http://mail.python.org/mailman/listinfo/python-list
