How would you flatten the list l
:
l = [1,2,[3,4,5],6,7]
giving the list:
[1,2,3,4,5,6,7]
This is not the same as flattening:
l = [[1],[2],[3,4,5],[6],[7]]
as addressed here:
How to make a flat list out of list of lists
where l
in this case contains only a list of lists of int.