Python Tutorials · Python Lists

Remove List Items

Learn all about Remove List Items in this comprehensive tutorial.

5 min read beginner
  • The remove() method removes the specified item.
  • The pop() method removes the specified index.
  • The clear() method empties the list.

Remove Specified Item

The remove() method removes the specified item.

python

If there are more than one item with the specified value, the remove() method removes the first occurrence:

python

Remove Specified Index

The pop() method removes the specified index.

python

If you do not specify the index, the pop() method removes the last item.

python

The del keyword also removes the specified index:

python

The del keyword can also delete the list completely.

python

Clear the List

The clear() method empties the list.

The list still remains, but it has no content.

python

Module quiz

2 questions
1

Which of the following is true about Remove List Items?

2

What is the most common pitfall when working with Remove List Items?

Answer all questions to submit.