Python: get key with the least value from a dictionary

by Rob on January 27, 2012

in programming

From StackOverflow:

http://stackoverflow.com/questions/3282823/python-get-key-with-the-least-value-from-a-dictionary

min(d, key=d.get)

Leave a Comment

Previous post:

Next post: