iNTERFACEWARE Products Manual > Learning Center > Learning Python > Dictionaries > Mapping |
![]() ![]() |
Looking for Iguana v.5 or v.6? Learn More or see the Help Center.
A dictionary provides a convenient way to map one set of values to another. For example, this dictionary maps doctor names to their corresponding ID codes:
To access this table, you can use the following code:
If you need to add another doctor to this table, all you need to do is add another key-value pair to the dictionary. |