"Tina I" <ti,,[EMAIL PROTECTED]> wrote:
> Hello group, > > Say I have the following dictionary: > > ListDict = { > 'one' : ['oneone' , 'onetwo' , 'onethree'], > 'two' : ['twoone' , 'twotwo', 'twothree'], > 'three' : ['threeone' , 'threetwo', threethree']} > > Now I want to append 'twofour' to the list of the 'two' key but I can't > figure out how to that? > Some pointers would be greatly appreciated. > Just do it: ListDict['two'].append('twofour') This works because ListDict['two'] is a list... - Hendrik -- http://mail.python.org/mailman/listinfo/python-list