list comprehension even list elements instead of loop and how to refer only to the index : <p>I want to use list comp' instead of a loop.
Let's sat I have a list of lists and I want only the even index elements.
Eg: [[a,a], [b,b], [c,c],[g,g]] to..... [[a,a], [c,c]]</p>

<p>This doesn't work</p>

<pre><code>
a = [i for i in the_list if i % 2 == 0)]

</code></pre>
