jacobolus
searching PlanetScale…
- 1.▲
- 2.▲
- 3.▲
- 4.▲
- 5.▲
- 6.▲
2822 ms·
- 6031.▲
- 6032.▲
- 6033.▲
- 6034.▲
Your second example is easier to just write as: >>> from itertools import chain
>>> list_of_lists = [['a', 'b', 'c'], ['d', 'e', 'f']]
>>> list(chain(*list_of_lists))
['a', 'b', 'c', 'd', 'e', ' - 6035.▲
- 6036.▲
- 6037.▲
- 6038.▲
- 6039.▲
- 6040.▲
- 6041.▲
- 6042.▲
- 6043.▲
- 6044.▲
- 6045.▲
- 6046.▲
- 6047.▲
- 6048.▲
- 6049.▲
- 6050.▲
- 6051.▲
- 6052.▲
- 6053.▲
- 6054.▲
- 6055.▲
- 6056.▲
- 6057.▲
- 6058.▲
- 6059.▲
- 6060.▲
More ›