human
Can you show me a Python program to create a set default values in dict.
assistant
Here is a Python program to create a set default values in dict

import datetime

def set_default(dictionary, key, value):
    """Set default value for a key in a dictionary.

    :param dict dictionary:
    :param str key:
    :param value:
    :rtype: dict
    :return:
    """
    if key in dictionary:
        del dictionary[key]
    dictionary[key] = value
    return dictionary

# Enter the dictionary
dictionary = {"key1": "value1", "key2": "value2"}

# Calling the function
dictionary = set_default(dictionary, "key3", "value3")

# Printing the result
print(dictionary)

#Example Output
# {'key1': 'value1', 'key2': 'value2', 'key3': 'value3'}

#Remember to inspect code for bugs.