Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to iterate row wise using 2d integer array in python

rows =3
columns= 2
mylist = [[0 for x in range(columns)] for x in range(rows)]
for i in range(rows):
    for j in range(columns):
        mylist[i][j] = '%s,%s'%(i,j)
print mylist
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #iterate #row #wise #integer #array #python
ADD COMMENT
Topic
Name
7+1 =