Method
Description
Append()
Add an element to the end of the list.
Extend()
Add all elements of a list to the another list.
Insert()
Insert an Item at the defined index.
Remove()
Removes an item from the list.
Pop()
Removes and returns an element at the given index.
Clear()
Removes all items from the list.
Index()
Returns the index of the first matched item.
Count()
Returns the count of number of items passed as an argument.
Sort()
Sort items in a list in ascending oreder.
Reverse()
Reverse the order of items in the list.
copy()
Returns a copy of the list.
In Python List, there are multiple ways to print the whole List with all the elements, but to print a specific range of elements from the list, we use Slice operation. Slice operation is performed on Lists with the use of a colon(:). To print elements from beginning to a range use [: Index], to print elements from end-use [:-Index], to print elements from specific Index till the end use [Index:], to print elements within a range, use [Start Index:End Index] and to print the whole List with the use of slicing operation, use [:]. Further, to print the whole List in reverse order, use [::-1].
Note – To print elements of List from rear end, use Negative Indexes.