Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

enumerate vs zip python same time

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

for i, (a, b) in enumerate(zip(alist, blist)):
    print i, a, b
 
PREVIOUS NEXT
Tagged: #enumerate #zip #python #time
ADD COMMENT
Topic
Name
7+4 =