I'm trying to remove some items from a list, and the required indexes are in another list.
I've tried list.pop(), but it also removes items from the parent list, just like list.remove()
sequence = [3, 6, 5, 8, 10, 20, 15]
sortS = sorted(sequence)
seq = sequence
for i in range(len(sequence)):
seq.remove(sequence[i])
sortS.remove(sequence[i])
print(sequence)
>>>[]