Public Questions for tag [flatten]

Ask Question

1 questions


0

Vote

4

Answers

21

View

Is there a shortcut to make a simple list out of a list of lists in Python?I can do it in a for loop, but is there some cool "one-liner"?I tried it with functools.reduce():from functools import reduce

Jan 20