[Baypiggies] manipulating lists question
Vikram K
vikthirtyfive at gmail.com
Thu Dec 5 09:06:06 CET 2013
Any suggestions on what i have to do to go from x to y?
>>> x = [['cat','NM123',12],['cat','NM234',12], ['dog', 'NM56',65]]
>>> x
[['cat', 'NM123', 12], ['cat', 'NM234', 12], ['dog', 'NM56', 65]]
>>> y = []
>>> y = [['cat','NM123, NM234', 12], ['dog', 'NM56', 65]]
>>>
Regards
Vik
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/baypiggies/attachments/20131205/e9c3c5cf/attachment.html>
More information about the Baypiggies
mailing list