Numbers are not the objects, so In loop every time you get only the next value of a list. And to that value, you do that operation. You should iterate over indexes, and assign a value to a specific place in the list. You could use the range function to do that.
Another problem is that you return value after calculating the first value in the list, so you should remove one indention.