Coderwall
Ruby
Python
JavaScript
Front-End
Tools
iOS
More
Tips
Ruby
Python
JavaScript
Front-End
Tools
iOS
PHP
Android
.NET
Java
Jobs
Jobs
Sign In or Up
Joined July 2017
·
programmerneo
programmerneo
0 Protips
1 Comments
Posted to
Flatten a list of lists in one line in Python
over 1 year ago
Say this on another site ....
flattened
list = sum(list
of_lists, [])
Achievements
1 Karma
0 Total ProTip Views
Say this on another site ....
flattenedlist = sum(listof_lists, [])