title: Write list of dictionary values to file
body: <p>I have a list of dictionaries such as:</p>
  
  <pre><code>values = [{'Name': 'John Doe', 'Age': 26, 'ID': '1279abc'},
            {'Name': 'Jane Smith', 'Age': 35, 'ID': 'bca9721'}
           ]
  </code></pre>
  
  <p>What I'd like to do is print this list of dictionaries to a tab delimited text file to look something like this:</p>
  
  <pre><code> Name    Age    ID
  John Doe    26    1279abc
  Jane Smith     35    bca9721
  </code></pre>
  
  <p>However, I am unable to wrap my head around simply printing the values, as of right now I'm printing the entire dictionary per row via:</p>
  
  <pre><code>for i in values: 
      f.write(str(i))
      f.write("\n")
  </code></pre>
  
  <p>Perhaps I need to iterate through each dictionary now? I've seen people use something like:</p>
  
  <pre><code>for i, n in iterable:
      pass
  </code></pre>
  
  <p>But I've never understood this. Anyone able to shed some light into this?</p>
  
  <p>EDIT:</p>
  
  <p>Appears that I could use something like this, unless someone has a more pythonic way (Perhaps someone can explain "for i, n in interable"?):</p>
  
  <pre><code>for dic in values:
      for entry in dic:
          f.write(dic[entry])
  </code></pre>