Swap keys and values of a dictionary. Assume all values are unique. Example: {'a':1,'b':2} => {1:'a',2:'b'}
Implement this function:
def swap_kv(d: dict) -> dict:
Write the function only — the arguments are read for you and the return value is printed automatically.
Arguments arrive as one Python literal per line, in this order: d.
Input
{'a': 1, 'b': 2}
Output
{1: 'a', 2: 'b'}