"Oops, try again. double_list([0, 1]) returned None. Did you remember to return the result? "
The code is supposed to double everything in a given list, and right now I get
which gives an error message.
Right now I have 'print n[i]'; 'return n[i]' gives a less correct answer.
n = [3, 5, 7] def double_list(x): for i in range(0, len(n)): n[i] = n[i] * 2 print n[i] # Don't forget to return your new list! print double_list(n)