Python List/Array Methods


Python has a set of built-in methods that you can use on lists/arrays.

Method Description
Adds an element at the end of the list
Removes all the elements from the list
Returns a copy of the list
Returns the number of elements with the specified value
Add the elements of a list (or any iterable), to the end of the current list
Returns the index of the first element with the specified value
Adds an element at the specified position
Removes the element at the specified position
Removes the first item with the specified value
Reverses the order of the list
Sorts the list

Note: Python does not have built-in support for Arrays, but Python Lists can be used instead.


Learn more about lists in our .

Learn more about arrays in our .



Login
ADS CODE