passing items from list to an empty object in another list
<p>I want to pass items from lists to the empty object in store i.e. I want:</p>

<pre><code>store = [ [['a', 'b'], ['c', 'd']], [] ]
</code></pre>

<p>I am getting an unintended result: </p>

<pre><code>lists = [['a', 'b'], ['c', 'd']]

store = [[], []]


counter = 0
for l in lists:
    for s in store:
        s.append(l)
</code></pre>

<p>which gives me:</p>

<pre><code>store = [[['a', 'b'], ['c', 'd']], [['a', 'b'], ['c', 'd']]]
</code></pre>

<p>Store has two empty lists, and you're adding on to both of them.  If you only want to add onto the first then</p>

<pre><code>for l in lists:
    store[0].append(l)
</code></pre>

python list nested-loops