Hello, i’m feel confuse when pratice with this link above. I’m newbie for Python.

There two function, the first is my and last is solution of codecademy :

```
def double_index(lst, index):
if index > len(lst) :
return lst
else :
lst[index] = lst[index] * 2
return lst
#print(double_index([3, 8, -10, 12], 1))
```

```
def solution_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
#print(double_index([3, 8, -10, 12], -5))
```

I’ve tested and no result different between 2 function. (i’m not return new list as excercies requires, but i’m think it’s not important.)

Excercise didn’t let me pass for define what should happen if index was too big. Tested with index = 15 and my function return lst origiral.

Please tell me that my function work correctly with any list input and will double value index in lst just like solution code ?

Tested with index = -5 and 2 function throw error Out of range.

Thanks.