You can create a dictionary in two ways. The first way is to simply assign an empty dictionary to a variable by using curly brackets, like so:
dictionary = {}
The second way is to use the dict() function to return a new dictionary:
dictionary = dict()
In both cases, a dictionary object will be created. We can inspect the attributes and properties defined on the dictionary object by using the built-in dir() function:
>>> dir(dictionary) ['__class__', '__contains__', '__delattr__', '__delitem__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__getitem__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__iter__', '__le__', '__len__', '__lt__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__setitem__', '__sizeof__', '__str__', '__subclasshook__', 'clear', 'copy', 'fromkeys', 'get', 'items', 'keys', 'pop', 'popitem', 'setdefault', 'update', 'values']
We can also confirm that we have an actual...