Input Format
The first line contains the integer .
The next  lines contains the  space separated elements of array .
Output Format
Print the determinant of .

hackerrank linear algebra problem solution in python

Problem solution in python 2 programming language.

import numpy

print numpy.linalg.det([ map(float, raw_input().split()) for i in range(int(raw_input()))])

Problem solution in python 3 programming language.

import numpy

print(numpy.linalg.det([ map(float, input().split()) for i in range(int(raw_input()))]))