python dynamic object

my_dict = {} # empty dict instance

my_dict["foo"] = "bar"
my_dict["num"] = 42

Here is what the above code is Doing:
1. Creating an empty dictionary called my_dict
2. Adding a key called “foo” with a value of “bar”
3. Adding a key called “num” with a value of 42