Let\'s assume there is a list a = [1, 3, 5, 6, 8].
a = [1, 3, 5, 6, 8]
I want to apply some transformation on that list and I want to avoid doing it sequentially, so someth
To make compatible with Python3
def map_fn(data): idx, el = data return idx*el my_list = [2,3,5,7] print(list(map(map_fn, list(enumerate(my_list)))))