O'Reilly logo
  • You Wang thinks this is interesting:

You’ve seen that lists are useful when you want to group values into a structure and refer to each value by number. In this chapter, you learn about a data structure in which you can refer to each value by name. This type of structure is called a mapping.


Cover of Beginning Python: From Novice to Professional, 3rd Edition


sequence: refer to element by number;
mapping: refer to element by name.