[BangPypers] list problem
Kenneth Gonsalves
lawgon at au-kbc.org
Thu Jul 22 12:23:33 CEST 2010
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
More information about the BangPypers
mailing list