flatten a list of list

Michael Fötsch foetsch at yahoo.com
Sun Aug 16 06:03:53 EDT 2009


Terry wrote:
> Is there a simple way (the pythonic way) to flatten a list of list?

This is probably the shortest it can get:

sum(list_of_lists, [])


Kind Regards,
M.F.



More information about the Python-list mailing list