List methods in python
List is a collection of data.we can store different data type and size is dynamically.
S.No | Methods | Explain |
---|---|---|
list append() | To insert an element in a list. | |
list clear() | To empty the list. | |
list copy() | To copy the elements from one list to another list. | |
list count() | To count the number specified element that is available in the list. | |
list extend() | To merge two list. | |
list index() | To specified element index in the list. | |
list insert() | To insert element in a specified index in the list. | |
list pop() | To remove the last element in the list. | |
list remove() | To remove the specified element in the list. | |
list reverse() | To reverse the list element. | |
list sort() | To arrange the list in an asscending order. |