On Thursday, July 22, 2010 03:21:38 pm Vikram wrote: > Suppose you have the following list: > >>> x =[['cat',10],['cat',20],['cat',30],['dog',5],['dog',1],['dog',3]] > > My problem is that i wish to obtain the following two dictionaries: > xdictstart = {'cat':10, 'dog':1} > xdictend = {'cat':30, 'dog':5}
I do not understand the question -- Regards Kenneth Gonsalves Senior Associate NRC-FOSS at AU-KBC _______________________________________________ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers