I want to change all the number in this list so that it will add 1.5 to anything that smaller than 0 until they are larger than 0, however, I don't understand why it would produce a very strange output ([1, 1, 1, 1, -3.5, -2.5, -4, -5, 0.5])
for i in y:
if i<0:
y[i] = i+1.5
print (y)