title: Python - return first value for each key
body: <p>Can someone help possibly point out a way of retrieving the first value for each key in a defaultdict/dictionary?</p>
  
  <p>For example I have this less than elegant solution:</p>
  
  <pre><code>d = {'4089e04a': ['24.0', '24.0', '24.0', '23.93', '23.93
  ', '23.93'], '408b2e00': ['20.91', '33.33'], '408b2e0c': ['44.44']}
  
  print d.values()[0][0]
  print d.values()[1][0]
  print d.values()[2][0]
  </code></pre>
  
  <p>It does work - but is there a better way so that I'm not limited to only returning 3 values?   I can't work out how to get it working within specifying each key individually...</p>
  
  <p>Thanks </p>