Oops, try again. list_function([1, 1]) returned [3, 11, 7] instead of [1, 4]
I expected it to work, if I print the listfunction it all appears right. When I change the list to a different set of numbers; it prints that list with 3 added to the number indexed on 1. Could someone please give some explanation. I looked at other posts like this one, but don't understand why this will not work.
def list_function(x): n = n + 3 return n n = [3, 5, 7] print list_function(n).