title: How can I define multidimensional arrays in python?
body: <p>In MATLAB there is an easy way to define multidimensional arrays e.g. </p>
  
  <pre><code>A(:,:,1) = [1,2,3; 4,5,6];
  A(:,:,2) = [7,8,9; 10,11,12];
  
  &gt;&gt; A
  
   A(:,:,1) =
  
   1     2     3
   4     5     6
  
  
   A(:,:,2) =
  
   7     8     9
   10    11    12
  </code></pre>
  
  <p>where the first two indices are respectively, for the rows and columns of the ith matrix (or page, see picture below) stored in A; </p>
  
  <p><a href="https://i.stack.imgur.com/iohAC.png" rel="noreferrer"><img src="https://i.stack.imgur.com/iohAC.png" alt="enter image description here"></a> </p>
  
  <p>Does anybody know how can I define the same structure in python? </p>