9. Using an element from a list in a function - Check script for return is incorrect


#1



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

Oops, try again. list_function([6, 2]) returned 6 instead of 2


Above error is Incorrect.

Instructions:
Change line 2 so that list_function returns only the item stored in index one of x, rather than the entire x list.


Replace this line with your code. 
def list_function(x): #given code
    return x[0]     #what I changed

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


#2

This is index zero. Try x[1].


#3

Thanks! I interrupted as first item instead of index 1!