def Map(f, lst): for i in range(len(lst)): lst[i] = f(lst[i]) return lst