Methods and Funcions
Methods and Funcions
extend(): Appends the elements of an iterable (e.g., another list) to the end of the list.
remove(): Removes the first occurrence of a specified element from the list.
pop(): Removes and returns the element at a specified index (or the last element if no index is
provided).
index(): Returns the index of the first occurrence of a specified element in the list.
count(): Returns the number of times a specified element appears in the list.
copy(): Creates a shallow copy of the list (new list with the same elements).