Flatten a nested list

Write flatten(items) that takes a list whose elements are either values or further lists, nested to any depth, and returns one flat list of all the values in order.

flatten(["apple", ["bread", ["jam"]], "milk"])  ->  ["apple", "bread", "jam", "milk"]
flatten([1, [2, [3, [4]]]])                     ->  [1, 2, 3, 4]
flatten([])                                     ->  []

The point is to practise recursion: a loop over the items, and a recursive call for each item that is itself a list.

def flatten(items):
    ...