News

Function objects can be stored in a dictionary as values. This lets us use dictionaries to execute one of a choice of functions based on some key—a common way to emulate the switch/case ...
The dictionary functions in a similar fashion to the Python list, in that it is a collection of data. In this case, however, dictionaries hold key-value pairs instead of single values.