30 seconds of pythonBack to Home
Deep flattens a list.
Define a function,
spread, that uses either
list.append() on each element in a list to flatten it.
list.extend() with an empty list and the
spread function to flatten a list.
Recursively flatten each element that is a list.