Lesson 10


#1



https://www.codecademy.com/courses/python-beginner-nzzVa/2/3?curriculum_id=4f89dab3d788890003000096

Error: Oops, try again.
list_function([2, 1]) returned 4 instead of [2, 4]


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)


#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?