[Tutor] Flattening multi-dimentional list
ajikoe at gmail.com
Thu Sep 29 09:53:22 CEST 2005
for isi in seq:
if type(isi) != str:
'''code to flatten tupple'''
hasil = 
On 9/29/05, Bernard Lebel <3dbernard at gmail.com> wrote:
> I have this list wich is made of tuples. I wish I could "flatten" this
> list, that is, to extract each element in the tuples and build a new
> flat list with it. Is there any shortcut to do that or do I have to go
> through some list comprehension-like procedure?
> (I have looked at sets but I have to keep things ordered).
> Tutor maillist - Tutor at python.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Tutor