Oct-16-2020, 10:41 PM
(This post was last modified: Oct-16-2020, 11:06 PM by snippsat.
Edit Reason: Added code tag
)
hello, im new to python and having some trouble with lists. im trying to change all the values in a list to 0 but when tring the range function it only goes so far in my list i previously appended it to go up by 1 after each value and now after trying t turn it into zero it gives me
[0,0,0,0,0,6,7,8,9,10] this is what my code looks like right now: for i in range (15-6 + 2): out.append(i) for i in range(out[1],out[length]): out[i] = 0any suggestions would be greatly appreciated