Create a dictionary from two lists (keys and values). Example: ['a','b'], [1,2] => {'a':1, 'b':2}
Implement this function:
def dict_from_lists(keys: list, values: list) -> 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: keys, values.
Input
['a', 'b']
[1, 2]
Output
{'a': 1, 'b': 2}