What do these error messages mean?


So here is my code:

def list_function(x):
x[0] = x[0] + 3
return x[0]

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

But when I run it it gives me an error message like "Oops, try again. list_function([6, 2]) returned 9 instead of [6, 5]"

Can someone tell me what these mean, and if I have any problems in the code can you tell me?


Found out what was wrong with the code. But can someone still tell me what the error messages mean?