Log in
← All problems

Flatten a list

mediumLists20 XP

nested is a list whose items are numbers or more lists, nested to any depth. Return all the numbers in one flat list, in order.

Examples

Examples use JSON: true/false/null are True/False/None in Python.

Run examples checks the examples above. Submit also runs 3 hidden tests.