it is not return [0 1 2] but I passed ?

it needs [0,1,2] in return ,but I didn t.

here is my code

def my_function(x):

for i in range(0, len(x)): #len[0,1,2]=3 so range(0,3) is [0,1,2]

x[i] = x[i] * 2

return x # and it becomes [0,2,4] in the end

print my_function(range(0,3,1)) # I think it is [0,1,2]

plz help thank u so much!!