[Tutor] Is there a programmatic use for keys() and values()

Alan Gauld alan.gauld at btinternet.com
Sat Jun 15 23:55:07 CEST 2013


On 15/06/13 20:54, Jim Mooney wrote:

> I just like to avoid typing all those odd little-finger characters.
> The dictionaries are the worst.

I think your making it harder than it is.
Just use the result as you would expect and it will work.

Don't get hung up over a list versus an iterable.
Just use it as is, mostly it will just do what you expect.

-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/



More information about the Tutor mailing list