Home »
Python »
Python SciPy MCQs
What will be the output of following code? SciPy Code 1
8. What will be the output of following code?
from scipy import linalg
import numpy as np
A = np.array([[2,3],[5,6]])
x = linalg.det(A)
print (x)
- -2.000000000000001
- -3.000000000000001
- -4.000000000000001
- None of the mentioned above
Answer: B) -3.000000000000001
Explanation:
when we run the code, we will get -3.000000000000001 as an output.