Question: Suppose that the following Python code was used to create a two-dimensional array/matrix with numPy: import numpy as np x = np.array([[4,3], [4,1], [3,2]]) For
Suppose that the following Python code was used to create a two-dimensional array/matrix with numPy:
import numpy as np
x = np.array([[4,3], [4,1], [3,2]])
For each of the following expressions, determine what the result would be.
(Hint: .T can be used to transpose a matrix.)
x.shape
x.size
x.T.shape
x[1,0] options: (2,3) , (6) , (4) , (3,2)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
