title: Print all values of a given key of dictionaries in a list
body: <p>I have a list of dictionaries that looks something like this:</p>
  
  <pre><code>list =[{"id": 1, "status": "new", "date_created": "09/13/2013"}, {"id": 2, "status": "pending", "date_created": "09/11/2013"}, {"id": 3, "status": "closed", "date_created": "09/10/2013"}]
  </code></pre>
  
  <p>What i want to do is be able to print all of the values in this list of dictionaries that relate to "id" If it was just 1 dictionary i know i could do like:</p>
  
  <pre><code>print list["id"]
  </code></pre>
  
  <p>If it was just one dictionary, but how do i do this for a list of dictionaries? I tried:</p>
  
  <pre><code>for i in list:
      print i['id']
  </code></pre>
  
  <p>but i get an error that says </p>
  
  <pre><code>TypeError: string indices must be integers, not str
  </code></pre>
  
  <p>Can someone give me a hand? Thanks!</p>