Title: Find The Max Value In A Dictionary
Slug: find_the_max_value_in_a_dictionary
Summary: Find The Max Value In A Dictionary Using Python.
Date: 2017-02-02 12:00
Category: Python
Tags: Basics
Authors: Chris Albon
In [1]:
ages = {'John': 21,
'Mike': 52,
'Sarah': 12,
'Bob': 43
}
In [2]:
max(zip(ages.values(), ages.keys()))
Out[2]: