Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

zip list python first element

a = [['sad', 1], ['dsads', 2]]
zip(*a)[0]

#results :
('sad', 'dsads')
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #zip #list #python #element
ADD COMMENT
Topic
Name
3+1 =