title: How to find determinant of matrix using python
body: <p>New at python and rusty on linear Algebra. However, I am looking for guidance on the correct way to create a determinant from a matrix in python without using Numpy. Please see the snippet of code below. Any assistance is greatly appreciated. </p>
  
  <pre><code>import math 
  from math import sqrt
  import numbers 
  import operators
  
  def determinant(self)
  
          if not self.is_square():
              raise(ValueError, "Cannot calculate determinant of non-square matrix.")
          if self.h &gt; 2:
              raise(NotImplementedError, "Calculating determinant not implemented for matrices larger than 2x2.")
  
  
          |x| = A
  
      det(A) = [[A, B][C, D]]
  
      assert self.rows == A.cols
      assert self.row &gt; 1
      term_list = []
  </code></pre>