Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

enumerate zip python

alist = ['a1', 'a2', 'a3']
blist = ['b1', 'b2', 'b3']

for i, (a, b) in enumerate(zip(alist, blist)):
    print i, a, b
Source by www.saltycrane.com #
 
PREVIOUS NEXT
Tagged: #enumerate #zip #python
ADD COMMENT
Topic
Name
7+2 =