myList.remove(item) # Removes first instance of "item" from myList myList.pop(i) # Removes and returns item at myList[i]
>>> a = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] >>> del a[-1] >>> a [0, 1, 2, 3, 4, 5, 6, 7, 8]
>>> del a[2:4] >>> a [0, 1, 4, 5, 6, 7, 8, 9]
a = ['a', 'b', 'c', 'd'] a.pop(1) # now a is ['a', 'c', 'd']