DICTIONARY FUNCTIONS AND METHODS
Python provides various functions and methods, such as cmp(), len(), and str(), that compare two dictionaries, return the length of a dictionary, and display a string representation of a dictionary, respectively.
You can also manipulate the contents of a dictionary using the functions clear() to remove all elements, copy() to return a copy, get() to retrieve the value of a key, items() to display the (key,value) pairs of a dictionary, keys() to display the keys of a dictionary, and values() to return the list of values of a dictionary.