dict

class dict(mapping, **kwarg)

Create a new dictionary object (built-in).

indexThe index number (Integer).
choice1The expression containing the first possible choice (Variant).
choice2(Optional) The expression containing the second possible choice (Variant).

REMARKS
* This is a built-in function.
* The dict object is the dictionary class.
* You can use the frozenset
* You can use the list
* You can use the set
* You can use the tuple
* For the Official documentation refer to python.org

class dict(**kwarg) 
class dict(mapping, **kwarg)
class dict(iterable, **kwarg)

numbers = dict(x=5, y=0)
print('numbers = ',numbers)
print(type(numbers))

empty = dict()
print('empty = ',empty)
print(type(empty))

© 2026 Better Solutions Limited. All Rights Reserved. © 2026 Better Solutions Limited Top