Human: invert a dictionary in. Assistant: 
Here is a Python code to invert a dictionary

import copy

def invert(dictionary):
    """
    Inverts a dictionary.
    """
    return {value: key for key, value in list(dictionary.items())}

# Enter the dictionary
dictionary = {"a": 1, "b": 2, "c": 3}

# Calling the function
print((invert(dictionary)))

#Example Output
# {1: 'a', 2: 'b', 3: 'c'}

#Remember to inspect code for bugs.