myList.remove(item) # Removes first instance of "item" from myList myList.pop(i) # Removes and returns item at myList[i]
list.remove(item)
>>> a=[1,2,3] >>> a.remove(2) >>> a [1, 3] >>> a=[1,2,3] >>> del a[1] >>> a [1, 3] >>> a= [1,2,3] >>> a.pop(1) 2 >>> a [1, 3] >>>