Why isn't my code returning the right answer? what am I doing wrong?
This error keeps popping up.
Oops, try again. double_list([0, 1]) returned [6, 5, 7] instead of [0, 2]
n = [3, 5, 7] def double_list(x): for i in range(0, len(x)): x[i] = x[i] * 2 return n # Don't forget to return your new list! print double_list(n)