title: How do I print the key-value pairs of a dictionary in python
body: <p>I want to output my key value pairs from a python dictionary as such:</p>
  
  <pre><code>key1 \t value1
  key2 \t value2
  </code></pre>
  
  <p>I thought I could maybe do it like this:</p>
  
  <pre><code>for i in d:
      print d.keys(i), d.values(i)
  </code></pre>
  
  <p>but obviously that's not how it goes as the <code>keys()</code> and <code>values()</code> don't take an argument.</p>