we have different types of list in python as:
- Append(): Adds an item to the end of the list
- Extend(): Adds all items from an iterable (e.g., list, tuple) to the end of the list.
- Insert(): Inserts an item at a specified index.
- Remove(): Removes the first occurrence of an item.
- Pop(): Removes and returns the item at the given index (or the last item if index is omitted).
- clear(): Removes all elements from the list, making it empty.
- index(item): Returns the index of the first occurrence of an item.
- count(item): Counts the occurrences of an item in the list.
- sort(): Sorts the list in ascending order
- reverse(): Reverses the order of items in the list.
- copy(): Returns a shallow copy of the list.