alternately appending elements from two lists
<p>I have three lists with elements :</p>

<pre><code>a = [[0,1],[2,3],...]
b = [[5,6],[7,8],...]

c = []
</code></pre>

<p>I want to append elements from <code>a</code> and <code>b</code> into <code>c</code> to get:</p>

<pre><code>c = [ [0,1],[5,6],[2,3],[7,8],.... ]
</code></pre>

<p>Consider:</p>

<pre><code>merged = []
for a_element, b_element in zip(a, b):
    merged.append(a_element)
    merged.append(b_element)
</code></pre>

<p>Unless you have very stringent performance requirements, the simplest approach is the right approach.</p>

python list append