DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
turn list of tuples into list
lt = [('Geeks', 2), ('For', 4), ('geek', '6')] out = [item for t in lt for item in t]
Source by www.geeksforgeeks.org #
PREVIOUS
NEXT
Tagged:
#turn
#list
#tuples
#list
ADD COMMENT
Topic
COMMENT
Name
3+3 =
Submit