13) double_list([0, 1]) returned [0, 1] instead of [0, 2] error



When I submit the code it only multiply the first variable and not the rest of the list so for instance i would submit a list of 3,5,7 i would get in return 6,5,7 and im not sure why.

n = [3, 5, 7]

# Don't forget to return your new list!
def double_list(x):
    for i in range(0,len(x)):
        return x

print double_list(n)


put return at same indent as for loop


Ah that did it thank you very much