Write invert(d) that swaps keys and values (values are unique).
invert(d)
invert({'a': 'x', 'b': 'y'}) → {'x': 'a', 'y': 'b'}
invert({}) → {}
Submit runs 3 tests, including hidden edge cases.
Run your code to see the output here.