Перейти к содержанию

Python dict() built-in function

Python dict() built-in function

From the Python 3 documentation Create a new dictionary. The dict object is the dictionary class. See dict and Mapping Types — dict for documentation about this class.

Examples

>>> a = dict()
>>> type(a)
# <class 'dict'>