I am trying to apply a function to a list. The function takes a value and produces another.
For example:
myCoolFunction(75)
would produce a new value.
So far I am using this:
x = 0
newValues = []
for value in my_list:
x = x + 1
newValues.append(myCoolFunction(value))
print(x)
I am working with around 125,000 values and the speed at which this is operating does not seem very efficient.
Is there a more pythonic way to apply the function to the values?