My code did not show any error. However, the instruction is to 'return a list containing [0,1,2] and I get [0,2,4] probably because of "x[i] = x[i] * 2" at line 3. So I tried to put "print my_function(range(3/2))" to neutralize the effect of line 3. But it would create an error and not go through, presumably because I can't put any fraction in the element of the function?
Please help how to return [0,1,2] with the line 3 in effect, other than removing line 3. Thanks!
Replace this line with your code.