python - Get the key corresponding to the minimum value within a dictionary -


If I have a python dictionary, how can I get the key of the entry in which there is a minimum value?

I was thinking about doing something with the input: function ...

  {320: 1, 321: 0, 322: 3}  

This will return 321 .

Comments