Lesson 10


#1

<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>

<Below this line, add a link to the EXACT exercise that you are stuck at.>
https://www.codecademy.com/courses/python-beginner-nzzVa/2/3?curriculum_id=4f89dab3d788890003000096
<In what way does your code behave incorrectly? Include ALL error messages.>
Error: Oops, try again.
list_function([2, 1]) returned 4 instead of [2, 4]

<What do you expect to happen instead?>
Code doesn’t work.

```

def list_function(x):
x[1] = x[1] + 3
return x[1] + 3

n = [3, 5, 7]
print list_function(n)

<do not remove the three backticks above>

#2

This is returning a value rather than a list. Have it return x.


#3

it works, it returns 11 for me:
5 + 3 + 3 = 11

what did you want this function to do?