title: Why does importing as modules and writing creates a different result?
body: <pre>
  def matrixdets(a):
      x=(a[0][0] * a[1][1] * a[2][2]) + \
        (a[0][1] * a[1][2] * a[2][0]) + \
        (a[0][2] * a[1][0] * a[2][1])
      print(x)
  </pre>
  
  <p>I wrote this code to find a certain value of a matrix. It returns a number when I type the function in python. However, when i import this as a module, it just returns the matrix i orginally entered. Why does that happen?</p>