9/18 instructions wrong


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

Shouldn't it be
"stored in index Two of x"
since indexes start at 0?
or am i wrong about this

Correct code

def list_function(x):
    return x[1] <---- shouldn't this be 'return x[0]'

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

As i move along through the exersizes it says the same thing in 10/18. am i right? that lists start at index 0? or is that for something else that im thinking about?

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

but i have to do
x[1] += 3
instead of
x[0] += 3


Yes it should be 1 because the instructions said return the element at index 1(literally) so x[1]. if you put 0 in there then you would extract whatever is at index 0


You don't have to add += 3 just [1]


You were right about 8/12. I wonder why it's like that.