I think it's easier to see what is going on without the nested subscripting:<p><pre><code> >>> i = 0
>>> a = [0, 0]
>>> i, a[i] = 1, 10
>>> a
[0, 10]
</code></pre>
versus<p><pre><code> >>> i = 0
>>> a = [0, 0]
>>> a[i], i = 10, 1
>>> a
[10, 0]</code></pre>