I have this problem, I have a sample list:
list = [6, 4, 5, 3, 10]
However, I need to remove the elements by index, and when I try to remove "4", I popped the item in index 4.
list.pop(4)
print(list)
Output:
list = [6, 4, 5, 3]
Is there a way I can get past this?