Flatten a list: Difference between revisions

(New task and Python solution)
 
Line 4:
Where the correct result would be the list:
[1, 2, 3, 4, 5, 6, 7, 8]
 
C.f. [[Tree traversal]]
 
=={{header|Python}}==
Anonymous user