Python List Methods

Python has a lot of list methods that allow us to work with lists. In this reference page, you will find all the list methods to work with Python List. For example, if you want to add a single item to the end of the list, you can use the list.append() method.

Python List append()

Add a single element to the end of the list

Python List clear()

Removes all Items from the List

Python List copy()

returns a shallow copy of the list

Python List count()

returns count of the element in the list

Python List extend()

adds iterable elements to the end of the list

Python List index()

returns the index of the element in the list

Python List insert()

insert an element to the list

Python List pop()

Removes element at the given index

Python List remove()

Removes item from the list

Python List reverse()

reverses the list

Python List sort()

sorts elements of a list