Method to add a single element to the end of a list
.append(element)
Method to add elements from another iterable (like a list or tuple) to the end of the current list
.extend(iterable)
Method to insert an element at a specific position
.insert(index, element)
Method to remove and return the element at a specified position (defaults to the last item)
.pop([index])
Method to remove the first occurrence of a specified value
.remove(value)
Method to remove all elements from the list
.clear()
Method to return the index of the first occurrence of a value
.index(value, [start, end])
Method to count how many times a specified value appears in the list
.count(value)
Method to sort the list in place
.sort(key=None, reverse=False)
Method to reverse the order of the list in place
.reverse()
What function is used to create a new, sorted list from an existing list?
sorted(list) (This is a built-in function, not a method.)
How do you create a shallow copy of a list?
list.copy() or list[:]