def Map(func, l): for i in range(len(l)): l[i] = func(l[i]) print(l)