Moving Python Elements between Lists
<pre><code>listA = [1,2,3]
listB = []

print listA
print listB

for i in listA:
        if i &gt;= 2:
                listB.append(i)
                listA.remove(i)
print listA
print listB
</code></pre>

<p>Why does this only add and remove element "2"?</p>

<p>Also, when I comment out "listA.remove(i)", it works as expected.</p>
