title: How do I get multiple max values in python dictionary?
body: <p>so I have a dictionary which looks like this:</p>
  <pre><code>foo_dict = {'A' : 0.03, 'B' : 0.13, 'C' : 0.42, 'D' : 0.42}
  </code></pre>
  <p>And I got the maximum  value with this line :</p>
  <pre><code>max_value = max(foo_dict.values())
  </code></pre>
  <p>As you see, the maximum value is 0.42 and there are two keys with that value-C and D.
  Now I want to get both C and D in a list. I've tried</p>
  <pre><code>max_key = max(foo_dict.keys(), key=lambda k : foo_dict[k])
  </code></pre>
  <p>But it only gives C. How do I get both(all) keys that have the same value that is <code>max_value</code>?
  <br> Thanks.</p>