Creates a dictionary.
Syntax
dict(**kwargs)Example
Enter values below to update the example in real time.
dict→name→print→pairs→d = dict(name="Alice", age=30)
print(d) # {'name': 'Alice', 'age': 30}
pairs = [("a", 1), ("b", 2)]
print(dict(pairs)) # {'a': 1, 'b': 2}