Search
 
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
Name
3+3 =