[Tutor] collections and mappings

Alan Gauld alan.gauld at yahoo.co.uk
Fri Jun 21 18:09:33 EDT 2019


On 21/06/2019 11:39, mhysnm1964 at gmail.com wrote:

> I think I understand, but that type of maths I have not touched in 40 years.

The real point is that in Python terms a mapping is nearly
always just another name for a dictionary. Either a set
of key/value pairs or a set of key/function pairs.

Very occasionally it will be a class rather than a dictionary.

-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos




More information about the Tutor mailing list