Prev: Leipzig Python User Group - Meeting, May 11, 2010, 08:00pm
Next: can we change the variables with function
From: Chris Rebert on 9 May 2010 04:21 On Sun, May 9, 2010 at 1:16 AM, gopi krishna <dasarathulagopi(a)gmail.com> wrote: > 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] http://www.lmgtfy.com/?q=python+flatten+list Cheers, Chris -- python-list doesn't like doing other people's homework. http://blog.rebertia.com |