def PrintMatrix(m): s = '' for i in m: for j in i: s = s+str(j)+' ' s = s+'\n' print(s)