Since stackoverflow refuses to let me answer this question as I'm a new user, I'll post my question and answer here. (The question is not present in the list of "Similar questions," either.)
QUESTION:
How can I flatten the following list of lists and ints?
[0, 10, [20, 30], 40, 50, [60, 70, 80]]