title: Iterate over a dictionary and print results in a column with headers
body: <p>I'm new to python and working my way through a few tutorials and Violent Python.</p>
  
  <p>I'm trying to improve on an example in the book for a PW cracker.</p>
  
  <p>I have the cracked passwords stored in a dict with the username as the key</p>
  
  <p>results = {'user1 : pass1', user2 : pass2} etc...</p>
  
  <p>I would like to iterate over the dictionary and print the results in the following way:</p>
  
  <pre><code>    key        User          Password
      1          user1         pass1
      2          user2         pass2
  </code></pre>
  
  <p>Below is the code I've been trying to use to get this to work along with the error I keep getting.</p>
  
  <pre><code>    print "{:&lt;8} {:&lt;15} {:&lt;15}" .format("Key", "User", "Password")
      for k,v in results.iteritems():
          user, pw = v
          print  "{:&lt;8} {:&lt;15} {:&lt;15}".format(v, user, pw)
  </code></pre>
  
  <p>Error:</p>
  
  <pre><code>    Traceback (most recent call last):
       File "shadow_crack.py", line 75, in &lt;module&gt;
        main()
      File "shadow_crack.py", line 68, in main
       user, pw = v
      ValueError: too many values to unpack
  </code></pre>