Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Iterate over several iterables in parallel

for item in zip([1, 2, 3], ['sugar', 'spice', 'everything nice']):
	print(item)

# (1, 'sugar')
# (2, 'spice')
# (3, 'everything nice')
Source by docs.python.org #
 
PREVIOUS NEXT
Tagged: #Iterate #iterables #parallel
ADD COMMENT
Topic
Name
5+1 =