On Tue, 24 Nov 2015 02:04:56 -0800, Cai Gengyang wrote:

> Here's a dictionary with 3 values :
> 
> results = {
>   "gengyang": 14,
>   "ensheng": 13, "jordan": 12
> }
> 
> How do I define a function that takes the last of the 3 items in that
> list and returns Jordan's results i.e. (12) ?

You open a web browser and google for "python dictionary"

-- 
Denis McMahon, denismfmcma...@gmail.com
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to