help me understand python
<p>Initialize an array of arrays:</p>

<pre><code>M = [[]]*(24*60/5)
</code></pre>

<p>Append the number 2 to the 51st array in <code>M</code></p>

<pre><code>M[50].append(2)
</code></pre>

<p>What is in M?</p>

<pre><code>...
[2]
[2]
[2]
[2]
[2]
[2]
[2]
[2]
...
</code></pre>

<p>Every element in M is the array <code>[2]</code></p>

<p>What am I missing? I suspect that every <code>[]</code> that I initially initialize is a reference to the same space in memory.</p>
