Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

find keys to minimum value in dict

# Works also with multiple equal minimum values
res = list(filter(lambda x: d[x]==minval, d))
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #find #keys #minimum #dict
ADD COMMENT
Topic
Name
5+4 =