13 Modifying each element in list function

Expect it to work

```
= [3, 5, 7]
def double_list(x):
for i in range(0, len(n)):
x[i] = x[i] * 2# Don't forget to return your new list!
return x
print double_list(n)
```

13 Modifying each element in list function

Expect it to work

```
= [3, 5, 7]
def double_list(x):
for i in range(0, len(n)):
x[i] = x[i] * 2# Don't forget to return your new list!
return x
print double_list(n)
```

It does, It just disappeared in copying

n = [3, 5, 7]

def double_list(x):

for i in range(0, len(n)):

x[i] = x[i] * 2# Don't forget to return your new list!

return x

print double_list(n)

@bandit @rootjr def list_function(x):

return x[1]

n = [3, 5, 7]

def double_list(x):

for i in range(0, len(x)):

x[i] = x[i] + 3 OR * 2 <-------

return x

print double_list(n)

print list_function(n)

Change list_function so that:

Add 3 to the item at index one of the list.

Store the result back into index one.

Return the list. what am i doing wrong, did they change this lesson because everyones cose multiplies by two instead of adding 3 im confused