dynamic object python code example Example: python dynamic object my_dict = {} # empty dict instance my_dict["foo"] = "bar" my_dict["num"] = 42