A tuple can be used as a key only if all of the objects that it contains are also non-mutable. Numbers and strings can always be used as keys. Lists can be used as keys. Lists cannot be used as keys in a dictionary because they are mutable. Describe the syntax of a dictionary.
Dictionaries grow or shrink on an as-needed basis.
Fetch and display some of the values. This will give you a list of keys, but they will not be sorted. Sample Program A complete listing of the program is shown in Listing 7. Listing 7 Copyright 2000, Richard G. Baldwin. Reproduction in whole or in part in any form or medium without express written permission from Richard Baldwin is prohibited.