human
Can you show me a Python program to invert dictionary with list of dictionary entries.
assistant
Here is a Python program to invert dictionary with list of dictionary entries

import json

def invert_dict_list(dictionary):
    """
    :param dictionary: dictionary to be inverted
    :return: inverted dictionary
    :rtype: dict
    """
    return {value: key for key, value in list(dictionary.items())}

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

# Calling the function
inverted_dictionary = invert_dict_list(dictionary)

# Printing the inverted dictionary
print(inverted_dictionary)

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

#Remember to inspect code for bugs.