Write a flatten
function, which given a list of lists (of any depth)
returns a flattened version of it.
>>> flatten([[1], 2, [[3, 4], 5], [[[]]], [[[6]]], 7, 8, []])
[1, 2, 3, 4, 5, 6, 7, 8]
There's no corrections yet, hit the `Submit` button to send your code to the correction bot.
Keyboard shortcuts: