title: how does the python min function works
body: <p>I was reading the question where the desired output was to get the element with minimum value</p>
  
  <p>so if</p>
  
  <pre><code>d= {'a':2,'b':3,'f':5}
  </code></pre>
  
  <p>The answer is a</p>
  
  <p>The answer given is <code>min(d, key=d.get)</code></p>
  
  <p>can anyone explain how this works</p>