I don't understand this lesson I am on. I have the right "for" function, don't I? I keep getting this error message: "Oops, try again. double_list([0, 1]) resulted in an error: list index out of range" Any help on this will be greatly appreciated, thanks guys!
n = [3, 5, 7] def double_list(x): for i in range(0, len(n)): x[i] = x[i] * 2 # Don't forget to return your new list! return double_list print double_list(n)