To remove a list item using index number of the element, you can use the del function. del function deletes the item with the given index from the list. Here is a sample:

mylist = ["apple", "banana", "kivi"]
del(mylist[1])
print(mylist)

This code snippet will output the following:

['apple', 'kivi']

Important Notes About Python Del Function

1. List indexes start with zero

While using this function, you have to note that list item indexes start from zero. So, if you want to remove the first element from the list, you need to give index number as zero (0).

2. List indexes are updated after deletion

Another important point is that, if you remove an item from the list, list indexes are updatedSo if you use the same function once more:

del(mylist[1])
print(mylist)

The output will be:

['apple']

(via pythondev.io)