[Tutor] Joining multiple lists

Daniel Yoo dyoo@hkn.eecs.berkeley.edu
Wed, 23 May 2001 22:31:47 -0700 (PDT)


> Again, we'll have too many parentheses in each element, but it's darn
> close to what you'll want.  To fix those extra parens, I think that Alan
> Gauld's tutorial mentions a way of "flattening" anything that looks like:
> 
>     (1, (2, (3, 4))) ===>flattening===>  (1, 2, 3, 4)
> 
> but I can't find the page.

I did, however, find one of the old messages that talked about list
flattening here:

    http://aspn.activestate.com/ASPN/Mail/msg/python-Tutor%3A454781

Good luck to you!