Hello, can someone translate this task please?

Create a function named

`double_index`

that has two parameters, a list named`lst`

and a single number as`index`

.The function should return a new list where all elements are the same as in

`lst`

except for the element at`index`

, which should be double the value of the element at`index`

of`lst`

.If

`index`

is not a valid index, the function should return the original list.

and why is this the solution to it:

def double_index(lst, index):

if index >= len(lst):

return lst

else:

new_lst = lst[0:index]

new_lst.append(lst[index]*2)

new_lst = new_lst + lst[index+1:]

return new_lst

thanks