Is there a way so that I could give a position in a list, e.g. 2 for the third value, and then directly use that position, e.g list.remove[2]?
For example:
Say my list was,
test = [0,1,2,3,2,2,3]
Is there a way so that if the user wanted to remove the 5th value, which is the middle 2, then you could just give a position and use it directly. In this case, if I was to use test.remove(2) it would remove the first 2 that appeared in the list, so is there a way that I could say the middle 2's position and then remove it without touching the rest of the list?
Something like test.remove[2]
would be a good idea to implement, the value in the [] being the position.