I am using following code, but my output is different than what I am expecting (it is adding 6 at the place of 3 in 2nd element of the list). But I am not getting any error and passing the exercise.
Can you suggest if my code is correct or not and what should be my output.
def list_function(x): x=x+3 return x n = [3, 5, 7] list_function(n) print list_function(n)
[3, 11, 7]