Answers for "how to iterate 2 arrays in 1 for loop in python"

4

iterating over 2d array python

x = [ ['0,0', '0,1'], ['1,0', '1,1'], ['2,0', '2,1'] ]
for i in range(len(x)):
  for j in range(len(x[i])):
    print(x[i][j])
Posted by: Guest on June-01-2021
22

python for with two arrays

for f, b in zip(foo, bar):
    print(f, b)
Posted by: Guest on March-30-2020

Code answers related to "how to iterate 2 arrays in 1 for loop in python"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language