Write invert(d) that swaps keys and values (values are unique).
invert({'a': 'x', 'b': 'y'})
→ {'x': 'a', 'y': 'b'}invert({})
→ {}Submit runs 3 tests, including hidden edge cases.
Each hint gives a little more help. Try on your own first.
Run your code to see the output here.