Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

2 for loops at the same time in Python

for i, j in zip([1,2,3], [3,2,1]):
    print i, j

for i, j in zip(f_iterate1(), f_iterate2()):
    print i, j
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #loops #time #Python
ADD COMMENT
Topic
Name
4+3 =