Write swap(d) that returns a new dict with each key and value swapped (values are all different).
swap({'a': 'x', 'b': 'y'})
→ {'x': 'a', 'y': 'b'}swap({})
→ {}Submit runs 4 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.