Python List Methods
Adds an item to the end of the list.
list.append(x)
Returns the number of times x appears in the list.
list.count(x)
Extends a list by appending all the items in the given list
list.extend(L)
Returns the index position of the first item in the list whose value is x.
list.index(x)
Inserts an item at a given position. The first argument tells the program which index position it should put the item in front of.
list.insert(i, x)
Removes the item at the given position in the list and returns it. If no index is specified, "a.pop()" removes and returns the last item in the list.
list.pop([i])
Removes the first item from the list whose value is x.
list.remove(x)
Reverses the elements of the list, in place.
list.reverse()
sorts the items of the list in place
list.sort
the elements of s[i:j:k] are replaced by those of t
s[i:j:k] = t
slice of s from i to j is replaced by the contents of the iterable t
s[i:j] = t
removes the elements of s[i:j:k] from the list
del s[i:j:k]