how to print python matrix?

Python Matrix : print the following matrices in Python \[A=\left[\begin{matrix}0&1\\1&0\\\end{matrix}\right]\] \[ B=\left[\begin{matrix}1&3&7\\5&8&-7\\-5&-2&0\\\end{matrix}\right]\] # Python Matrix import numpy as np A=np.array([[1,0],[0,1,1]]) B=np.array([[1,3,7],[5,8,-7],[-5,-2,0]]) print("Matrix A =",A) print("Matrix B =",B) Output : Matrix…