7 List Functions Every Python Programmer Should Know

1. append()

Adds an item to the end of the list. Mutates the original list.

2. extend()

Adds multiple items (from another iterable) to the end of the list.

3. insert()

Inserts an item at a specified position within the list.

4. remove()

Removes the first occurrence of a specified item from the list.

5. pop()

Removes and returns an item at a specified position or from the end of the list.

6. sort()

Sorts the list in ascending order (in-place). Optional parameters for custom sort.

7. reverse ()

Reverses the elements of the list in place, altering the original list.

For More Related Story Click For the Below 

Statanalytica