title: Create 3D array using Python
body: <p>I would like to create a 3D array in Python (2.7) to use like this:</p>
  <pre><code>distance[i][j][k]
  </code></pre>
  <p>And the sizes of the array should be the size of a variable I have. (n<em>n</em>n)</p>
  <p>I tried using:</p>
  <pre><code>distance = [[[]*n]*n]
  </code></pre>
  <p>but that didn't seem to work.</p>
  <p>I can only use the default libraries, and the method of multiplying (i.e.,<code>[[0]*n]*n</code>) wont work because they are linked to the same pointer and I need all of the values to be individual</p>