Arrays/dictionaries in python
<p>I was trying to create a method that does a loop and in the process it creates array with 2 levels.</p>

<p>In PHP it would look like this</p>

<pre><code>for($a = 0; $a &lt; 3; $a++) {
    $something[$a] = [1,2,3];
}
</code></pre>

<p>But the problem is with python. I can't seem to add the key "u" to the variable and the array under it in the same time. How would you do this properly?</p>

<p>My current code:</p>

<pre><code>for u in range(3):
    something[u] = [1,2,3] #this line doesn't seem to work
    somethingElse = [1,2,3] #this works properly
</code></pre>

<p>Please excuse me if this is a stupid question. I am a beginner and I already tried googling it, but didn't actually find anything useful.</p>
