Answers for "python iterate 2d array"

0

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
0

python foreach 2d array

for i in twodarray:
    for j in i:
        print j
Posted by: Guest on October-22-2021

Python Answers by Framework

Browse Popular Code Answers by Language