solutions

Write a function that inverts a dictionary's keys and values so that all values are now keys, and that all keys are now values.

a_dict = {1: 'a', 2: 'b', 3:'c'}

invert_dict(a_dict) # {'a': 1, 'b': 2, 'c': 3}

Test Cases

tests

[]