Untitled

mail@pastecode.io avatar
unknown
plain_text
7 months ago
459 B
1
Indexable
Never
def printList(ar):
    for row in range(len(ar)):
        for col in range(len(ar[0])):
            print(ar[row][col], end=" ")
        print("")
N=[]

for r in range(4):
    N.append([])

for r in range(len(N)):
    value=1

    for c in range(5):
        
        N[r].append(value)
        value+=2

printList(N)
print("")
newValue=1
for r in range(len(N)):
    for c in range(len(N[0])):
        N[r][c]= newValue
    newValue=newValue +2


printList(N)
Leave a Comment