Source Code:
(back to article)
# Initialize an empty dictionary my_dict = {} # Add a new item to the dictionary my_dict.update({"new_key": "new_value"}) # Print the dictionary print(my_dict)
Result:
Report an issue