Invert a dictionary (swap keys and values). Assume values are unique.
Implement this function:
def dict_invert(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'}