title: Using Python's max to return two equally large values
body: <p>I'm using Python's <a href="http://docs.python.org/library/functions.html#max" rel="noreferrer">max</a> function to find the largest integer in a dictionary called <code>count</code>, and the corresponding key (not quite sure if I'm saying it properly; my code probably explains itself better than I'm explaining it). The dictionary <code>count</code> is along the lines of <code>{'a': 100, 'b': 210}</code>, and so on.</p>
  
  <pre><code>number = count[max(count.items(), key=operator.itemgetter(1))[0]]
  highest = max(count, key=count.get)
  </code></pre>
  
  <p>What would I do if there were two equal largest values in there? If I had <code>{'a': 120, 'b': 120, 'c': 100}</code>, this would only find the first of <code>a</code> and <code>b</code>, not both.</p>