how to iterate all sub-element in a list

seaspeak at gmail.com seaspeak at gmail.com
Fri Jan 31 05:16:36 EST 2014


a list like L = [[1, 2], [3, 4, 5], [6]], which has
random numbers of list, which has random numbers.

How do I get another list m = [1, 2, 3, 4, 5, 6] in a succinct way? ( or iterate them)
I should provide my own solution, but I really can't come out with one.



More information about the Python-list mailing list