Question 1

How do you perform matrix multiplication on the numpy arrays A and B ?


Question 2

What values does the variable out take if the following lines of code are run?

X=np.array([[1,0,1],[2,2,2]]) 
out=X[0:2,2]
out

Question 3

What is the value of Z after the following code is run?

X=np.array([[1,0],[0,1]])
Y=np.array([[2,2],[2,2]])
Z=np.dot(X,Y)