There is something wrong with the instructions here, I compiled this:
x = [0, 1, 2]
for i in range(0, len(x)):
x[i] = x[i] * 2
print my_function(range(3)) # Add your range between the parentheses!
Result is this:
[0, 2, 4]
which is wrong. The expectation was to return a list containing [0, 1, 2].