>>> vals={"a": 2, "b":3, "c": 4} >>> min(vals, key=lambda x: vals[x]) 'a'
Last updated 3 years ago
Was this helpful?
This site uses cookies to deliver its service and to analyse traffic. By browsing this site, you accept the privacy policy.