Python appends only one value : <p>Here is my Python Code</p>

<pre><code>pos = 0

for i in range(-10,10):
    x = 3*i + 1
    dataX = []

    #dataX.append(x)

    dataX.insert(pos,x)
    print("insert "+str(x)+" at "+ str(pos) + "|" + str(dataX))
    pos += 1

print(dataX)
</code></pre>

<p>Simply append should work right? but it does not, but so is insert..</p>

<p>Both returns same values as following..</p>

<pre><code>insert 1.9 at 13|[1.9]
</code></pre>

<p>that is 13th iteration as shown, and yet it does not do either insert nor append which should have generated list of data</p>

<p>I have no idea I've tried append as shown but results in [1.9] even with previous data.</p>
