Answer to Question #190369 in Python for Arbab Abdul basit

Question #190369

function called print_matrix that takes a 2D list(matrix) of 3x3 as a parameterand prints the values in matrixshape.


1
Expert's answer
2021-05-07T12:09:52-0400
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?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS