Alright, so I have passed this section, but I do not understand why the code works!
I particular do not understand why I have to "return x"!!!
I noticed that if I got rid of the "return x", it gives me the correct answer (by correct I mean the EXACT same answer as when I write "return x"), but the program will give an error message, "Oops, try again. list_function([6, 2]) returned None, did you remember to return the result?"
Why is the first one unacceptable?
SEEMINGLY CORRECT CODE: def list_function(x): x = x + 3 n = [3, 5, 7] list_function(n) print n CORRECT CODE: def list_function(x): x = x + 3 return x n = [3, 5, 7] list_function(n) print n