Find The Max Value In A Dictionary

Want to learn more? I recommend these Python books: Python for Data Analysis, Python Data Science Handbook, and Introduction to Machine Learning with Python.

Create A Dictionary

ages = {'John': 21,
        'Mike': 52,
        'Sarah': 12,
        'Bob': 43
       }

Find The Maximum Value Of The Values

max(zip(ages.values(), ages.keys()))
(52, 'Mike')