Find and shows the highest record of the name list
<p>I'm new to Python.
I've been given a task to write a Python program to read a name list which consist of people names and their height.</p>

<p>Any suggestion or idea for coding to find out the highest height and show the record?</p>

<p>For examples, the highest height is 180 and the result will show "Adam,180"</p>

<pre><code>names = {'jason': 5.8, 'daniel': 5.0, 'rizwan': 6}

&gt;&gt;&gt; sorted(names.items(), key=lambda value: value[1], reverse=True)
[('rizwan', 6), ('jason', 5.8), ('daniel', 5.0)]

&gt;&gt;&gt; max(sorted(names.items(), key=lambda value: value[1]))
('rizwan', 6)
&gt;&gt;&gt; min(sorted(names.items(), key=lambda value: value[1]))
('daniel', 5.0)
</code></pre>

python