"Oops, try again. double_list([0, 1]) resulted in an error: list index out of range"
It is printing the values I would expect, 6,10,14. I am new to this and am still struggling to come to terms with the basics for instance a totally off topic question why can a for loop take anything as an argument, for instance "i" in the below part could be item etc, this puzzles me a little. Any help would be great, thanks.
n = [3, 5, 7] def double_list(x): for i in range(0, len(n)): x[i] = x[i] * 2 return x print double_list(n)