Flatten a list: Difference between revisions

Content added Content deleted
(New task and Python solution)
 
Line 4: Line 4:
Where the correct result would be the list:
Where the correct result would be the list:
[1, 2, 3, 4, 5, 6, 7, 8]
[1, 2, 3, 4, 5, 6, 7, 8]

C.f. [[Tree traversal]]


=={{header|Python}}==
=={{header|Python}}==