my_dict = {"existing_key": "existing_value"} my_dict.setdefault("key1", "value1") print(my_dict)