Ryan McClain wrote:
I did that before I posted this question and it doesn't help me.. here's what I wrote down:
I must be getting something wrong.
Well, if i is at index zero, then doesn't "list[i] = list[i+1]" copy the element at index 1 down to index zero? then with the next iteration of the for loop, if i is now at index one, then doesn't "list[i] = list[i+1]" copy the element at index 2 down to index 1? and of course, there is a line after the for loop -- can you figure out what it does?
Henry