10/18 help


#1

Ok so this is my code:
def list_function(x):
x[1] = x[1]+3
return x

n = [3, 5, 7]
print list_function(n)
why isn't it working? I have everything indented right. every single time i submit it it says that different numbers are wrong. Like at one point, it says Oops, try again. list_function([8, 9, 8]) returned [8, 12, 8] instead of 9 but then i hit it again and it says Oops, try again. list_function([9, 0, 8, 6, 1]) returned [9, 3, 8, 6, 1] instead of 0


#2

Nevermind lol I was entering it on the wrong one


#3

Hello stuartphilp

I have the same variable error messages as you had.

Can you tell me what the problem was?