from numpy import array
from numpy.linalg import inv

A = array([ [1,-1,2],
          [0,-1,1],
          [2,-2,3] ])

print( inv(A) )
