title: How to create a matrix in python
body: <p>Lets say I have a matrix: [1, 2, 3] &amp; [4, 5, 6] &amp; [7, 8, 9]. Written down they look like:
  <a href="https://i.stack.imgur.com/qwEj8.png" rel="nofollow noreferrer">this</a>.</p>
  <p>Now, I would like to create this matrix in Python, but I am not sure how to do so.</p>
  <p>I think its written like either this:</p>
  <pre><code>import numpy as np
  np.array([[1, 2, 3],
            [4, 5, 6],
            [7, 8, 9]])
  </code></pre>
  <p>Or like this:</p>
  <pre><code>import numpy as np
  np.array([[1, 4, 7],
            [2, 5, 8],
            [3, 6, 9]])
  </code></pre>
  <p>Which way should I use?</p>