Hi there!

I really confused. I already did it, and everything is working, BUT I tried to check a code in Python IDLE:

def my_function(x):

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

x[i] = x[i] * 2

return x

print my_function(range(3)) # Add your range between the parentheses!

and it's not working:(((

Python shows this error:

x[i] = x[i] * 2

TypeError: 'range' object does not support item assignment

Could you help me please to figure out it?

I will appreciate.

Thanks.