Python – List append() Method
The Python list append() method appends an element to the end of the list.
The Python list append() method appends an element to the end of the list.
The Python list count() method returns the number of elements with the specified value.
The Python list extend() method adds the specified list elements (or any iterable) to the end of the current list.
The Python list index() method returns the position at the first occurrence of a specified value of any type (string, number, list, etc.).
The Python list insert() method inserts the specified value at the specified position.
The Python list pop() method removes the element at a specified position.
The Python list remove() method removes the first occurrence of the element with the specified value.
The Python list reverse() method reverses the sorting order of the elements.
The Python list sort() method sorts the list ascending by default, but parameters can be included to change the sort method.
The Python set difference() method returns a set that contains the difference between two sets.
The Python set difference_update() method removes the items that exist in both sets.
The Python set discard() method removes the specified item from the set.
The Python set intersection() method returns a set that contains only items that exist in both sets, or in all sets if more than two sets are compared.
The Python set intersection_update() method removes the items that are not present in both sets, or in all sets if more than two sets are compared.
The Python set isdisjoint() method returns True if none of the items are present in both sets, otherwise it returns False.