function called print_matrix that takes a 2D list(matrix) of 3x3 as a parameterand prints the values in matrixshape.
def print_matrix(m): for i in range(len(m)): for j in range(len(m[i])): print(m[i][j], end=' ') print('')
Need a fast expert's response?
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Comments
Leave a comment