Explore Library
Code QuizIntermediate

Determinant of a Matrix

Finding the error in a determinant calculation.

Codepython
import numpy as np

A = np.array([[1, 2],
              [3, 4]])

# Compute the determinant
det = np.linalg.det(A[0])
print(det)

What is the bug in this code?