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



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

Above error is Incorrect.

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


This is index zero. Try x[1].


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