flattening list

gopi krishna dasarathulagopi at gmail.com
Sun May 9 04:16:21 EDT 2010


Hi ,
    Anyone can pls help me in flattening the list.
if p is the my list which is defined below
p=[1,[2,3,4],[5,6,],9,[[11,12]]]
from the above how to get a list
as [1,2,3,4,5,6,9,11,12]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20100509/01719c90/attachment.html>


More information about the Python-list mailing list