If I have a Python dictionary, how do I get the key to the entry which contains the minimum value?

I was thinking about something to do with the min() function…

Given the input:

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

It would return 321.

16 Answers
16

Leave a Reply

Your email address will not be published. Required fields are marked *