I was trying to delete some elements from the list but my index and indexnumber stayed the same. How can we solve such a problem? How we can change variables in function?