python integer value replacement in a list not working properly
python integer value replacement in a list not working properly Question: I am trying to replace a few integers from a list with a specific value. However, the output which I am getting is not desirable. Is the for loop not working properly or is there some other problem? y1= [1,2,3,-1,-2,-3,-4,0,0] for i in range(len(y1)): …