Python List Methods

Python has some list methods that you can use to perform frequency occurring task (related to list) with ease. For example, if you want to add element to a list, you can use append() method.

The page contains all methods of list objects. Also, the page includes built-in functions that can take list as a parameter and perform some task. For example, all() function returns True if all elements of an list (iterable) is true. If not, it returns False.

Method Description
Python List append() Add a single element to the end of the list
Python List extend() Add Elements of a List to Another List
Python List insert() Inserts Element to The List
Python List remove() Removes item from the list
Python List index() returns smallest index of element in list
Python List count() returns occurrences of element in a list
Python List pop() Removes element at the given index
Python List reverse() Reverses a List
Python List sort() sorts elements of a list
Python List copy() Returns Shallow Copy of a List
Python List clear() Removes all Items from the List
Python any() Checks if any Element of an Iterable is True
Python all() returns true when all elements in iterable is true
Python ascii() Returns String Containing Printable Representation
Python bool() Converts a Value to Boolean
Python enumerate() Returns an Enumerate Object
Python filter() constructs iterator from elements which are true
Python iter() returns an iterator
Python list() creates a list in Python
Python len() Returns Length of an Object
Python max() returns the largest item
Python min() returns the smallest value
Python map() Applies Function and Returns a List
Python reversed() returns the reversed iterator of a sequence
Python slice() returns a slice object
Python sorted() returns a sorted list from the given iterable
Python sum() Adds items of an Iterable
Python zip() Returns an iterator of tuples