DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
python turn list of lists into list
def flatten(t): return [item for sublist in t for item in sublist]
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#python
#turn
#list
#lists
#list
ADD COMMENT
Topic
COMMENT
Name
5+1 =
Submit