Getting a list of specific index items from a list of dictionaries in python (list comprehension)
<p>I have a list of dictionaries like so:</p>

<pre><code>listDict = [{'id':1,'other':2},{'id':3,'other':4},{'id':5,'other':6}]
</code></pre>

<p>I want a list of all the ids from the dictionaries.  So, from the given list I would get the list:</p>

<pre><code>[1,3,5]
</code></pre>

<p>It should be one line.  I know I've done this before, I've just forgotten the syntax...Thanks</p>
