def list_function(x): a= x+3 n=a return n n = [3, 5, 7] list_function(n) print list_function(n)
can you include the exercise url and the error message?
you shouldn't use
n here, this means your function will only work for one list instead of every list passed into the function as argument, use the function parameter instead like you did on the line above
also, return the whole list, not just the item at index 1
thanx!!! for the help