Why does it keep it in the list?
<pre><code>def test(x,theList): 
    theList.append(x) 
    if x &lt; 2: 
        x = x + 1 
        test(x,theList) 
        print x 
        print theList 

test(1,[]) 
</code></pre>

<p>Why is the result [1,2]? And not only [1]? </p>
