What would be the best implementation for multiplying a list of numbers raised to a defined number of exponents.
Currently I have a list of 8 numbers that would be needed to be raised to a power. Every list will always contain 8 numbers and the numbers in the list will always have the exponent of which their index value is.
For example:
List = [1,2,3,4,5,6,7,8]
Power(1,0) + Power(2,1) + Power(3,2) +.... Power(8,7)
However, the issue is what if the list has a none value, how can you carry the exponential increased value without affecting the total sum.
Example:
List = [1,None,3,4,5,6,7,8]
Power(1,0) + (none) + Power(3,2) +.... Power(8,7)
Any ideas of implementation would help.