Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python interate with two list

foo = (1, 2, 3)
bar = (4, 5, 6)

for f, b in zip(foo, bar):
    print(f, b)

>>> f: 1; b: 4
f: 2; b: 5
f: 3; b: 6
 
PREVIOUS NEXT
Tagged: #python #interate #list
ADD COMMENT
Topic
Name
3+4 =