Initialise array of empty arrays
<p>This is my code:</p>

<pre><code>a = [[]] * 10
a[0].append(1)
print a # Outputs [[1], [1], [1], [1], [1], [1], [1], [1], [1], [1]]
</code></pre>

<p>How can I get <code>a</code> to output</p>

<pre><code>[[1], [], [], [], [], [], [], [], [], []]
</code></pre>

<p>?</p>
