"Nick Perkins" <nperkins7 at home.com> writes: > def flatten(L): > if type(L) != type([]): return [L] > if L == []: return L > return reduce(lambda L1,L2:L1+L2,map(flatten,L)) [...] > ...maybe someone knows how to avoid the lambda, Sure: Use operator.add. Regards, Martin