Return list of (index, element) tuples. Example: ['a','b'] => [(0,'a'),(1,'b')]
Implement this function:
def zip_with_index(lst: list) -> list:
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: lst.
Input
['a', 'b']
Output
[(0, 'a'), (1, 'b')]