title: After run this python code couldn't passed all the test cases
body: <p>I am trying to solve hackerrank linear algebra problem. Here is the Task:</p>
  <blockquote>
  <blockquote>
  <p>You are given a square matrix  with dimensions X. Your task is to find
  the determinant. Note: Round the answer to 2 places after the decimal. <br>The first line contains the integer N . The next N lines contains
  the N space separated elements of array A.</p>
  </blockquote>
  </blockquote>
  <p>Here is my code</p>
  <pre><code>import numpy
  i = int(input())
  l = []
  
  while i &gt; 0:
  
      a,b = map(float, input().split())
      l.append([a,b])
      # l.append([a])
      i = i - 1
  
  result = numpy.linalg.det(l)
  print(round(result,2))
  </code></pre>
  <p>after run this it failed to pass this test case:</p>
  <pre><code>3
  1 2 3
  4 5 6
  1 2 1
  </code></pre>
  <p>output: 6.0</p>
  <p>for this test case user takes 3 variable but in my code i took 2 variable that's why i can't pass this test case. But how can i ensure in my code that no matter how many variable user took at the end it will show the output and saved in the list.</p>
  <p>Thanks.</p>