1

I can't understand why python gives me the above error!!

def my_function(x):
    for i in range(0, len(x)):
        x[i] = x[i] * 2
    return x
print (my_function(range(3)))
Max
  • 69
  • 1
  • 2
  • 7

0 Answers0