Learn Before
Concept
Removing an element from a list: del vs. pop()
With the given index of the element to remove, you can delete an item by calling del on the list indexed at the element's index. Unlike pop(), this simply removes the element without returning the value.
del can also be used to remove an entire list or slices in the same way as the pop() method.

0
1
Updated 2021-06-01
Tags
Python Programming Language
Data Science