List Manipulation 4
List Manipulation 4
List Manipulation 4
MANIPULATION 4
LIST FUNCTIONS AND METHODS
Returns the length of its argument list. i.e it returns the number
of elements in the passed list. It is Python’s standard library
function.
The list() method
This function returns the index of first matched item from the
list.
If the given item is not in the list, it raises ValueError.
The append() method
This method adds an item to the end of the list. It modifies the
original list.
The extend() method