[Baypiggies] nested list to dict question
Vikram K
kpguy1975 at gmail.com
Tue Dec 28 16:51:09 CET 2010
I have a nested list which looks something like this:
x = [['104', '4501919'], ['104', '237681091'], ['104', '7669477'],
['100528064', '315259111']]
I wish to convert this to a dict type which looks something like this:
y = {'104': ['4501919', '237681091', '7669477'], '100528064': ['315259111']}
Please help!
Thanks
Vikram
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/baypiggies/attachments/20101228/f1e906c8/attachment.html>
More information about the Baypiggies
mailing list