Flatten a list of lists (any depth) in Python

/ Published in: Python
Save to your folder(s)

Flatten a list of lists (or tuple of tuples, list of tuples, etc.) to any depth of nesting using no mutable objects.

URL: py_flatten_list

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.