
# mat1.py
mat = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]

r = 0
while r < len(mat):
    c = 0
    while c < len(mat[r]):
        print( mat[r][c],  end='')
        c = c + 1
    print()
    r = r + 1
