The directions are:
Create a function called double_list that takes a single argument x (which will be a list) and multiplies each element by 2 and returns that list. Use the existing code as a scaffold.
I used the correct code, but why does the return code have to be 'return x'?
My code (I did use proper indentation, but this post does not reflect that):
n = [3, 5, 7]
for i in range(0, len(x)):
x[i] = x[i] * 2
Don't forget to return your new list!