title: How to manually create a three-by-three-by-three NumPy array using a combination of np.array() and np.arange(3)?
body: <p>I am missing an approach to the following NumPy array. The goal is to manually create a three-by-three array. I have come this far:</p>
  
  <pre><code>m = np.array([[np.arange(3)], [np.arange(3)], [np.arange(3)]])
  m
  ​
  # Output:
  array([[[0, 1, 2]],
  ​
         [[0, 1, 2]],
  ​
         [[0, 1, 2]]])
  
  m.shape
  # Output:
  (3, 1, 3)
  </code></pre>
  
  <p><strong>Question: How must m be adapted so that m.shape becomes (3, 3, 3)?</strong></p>