May-02-2020, 11:40 PM
I'd prefer to use a nice library, but the flatten in more-itertools unpacks all the elements in the list exactly one level. It won't cope with the
9
in the OP list.