Here we call del to remove the third element in a list. We compare this to the remove() method on list, which searches for the first matching value and then deletes it.
values = [100, 200, 300, 400, 500, 600]
# Use del to remove by an index or range of indexes.
del values[2]
print(values)
values = [100, 200, 300, 400, 500, 600]
# Use remove to remove by value.
values.remove(300)
print(values)
[100, 200, 400, 500, 600]
[100, 200, 400, 500, 600]