The function should double the value of the element at
lst and return the new list with the doubled value.
index is not a valid index, the function should return the original list.
Is your function indented like this? (You can actually present your function as Python code, which includes indentations as a necessary part of its syntax, by using the </> icon that is in the middle of the menu bar at the top of the text box you are typing in.)
if (index >= 0) and (index < len(lst)):
new_index = lst[index] * 2
lst = [3, 8, -10, 12]
-20 # This is the (correctly) doubled value at index 2
[3, 8, -10, 12] # This should be [3, 8, 20, 12]