Hey guys i'm a bit stuck and would like some help!

This is my code:

n = [3, 5, 7]

def list_function(x):

for i in range(0, len(n)):

x[i] = x[i] * 2

return x

print list_function(n)

This is the error it tells me in the red box:

Oops, try again. list_function([6, 4]) resulted in an error: list index out of range

I am not too sure what I have done wrong!

Looking forward to a response

Thanks!!