def PrintMatrix(init = [], *args): mat = [] for i in init: mat.append(i) for row in mat: print(' '.join([str(elem) for elem in row]))