title: Using max together with the 'get' method for a dictionary
body: <p>So, I was watching this presentation and it introduced me to this awesome way of finding the maximum value in a dictionary. This probably isn't breaking any ground for most folks on here, but here it is:</p>
  
  <pre><code>c = {"One":1, "Two":2, "Uns":1}
  max(c,key=c.get)
  'Two'
  </code></pre>
  
  <p>I don't understand quite how it works. The 'get' method returns the value for a key, if the key exists in the dictionary. So does the 'max' iterate through each key, find the associated value and then return the key associated with the maximum value? How does it work when the dictionary has multiple maximum values?</p>
  
  <pre><code>c = {"One":1, "Two":2, "Uns":1, "Dos": 2}
  max(c,key=c.get)
  'Dos'
  </code></pre>
  
  <p>So, to experiment and confuse myself further, I tried this:</p>
  
  <pre><code>c = {"One":1, "Two":2, "Uns":1}
  max(c.values(),key=c.get)
  1
  </code></pre>
  
  <p>So, why did it return '1' instead of '2'? Please un-confuse this soul!</p>