In the lists and functions section of the course, section 10 modifies an element in three number list and should return that list.
This throws up the error ' list_function([5, 2]) returned [5, 2] instead of [5, 5] ' but the display seems right which is [3, 8, 7], 3 has been added to the 1st element in the list.
I started up python on my computer, and ran it there and it runs without error with the same result. Can anyone explain why it's ok in a python application but not on Code Academy and maybe where I am going wrong with this.
Thank you for any help you can give.
def list_function(x): n = n + 3 return x n = [3, 5, 7] print list_function(n)