python fjarlægja þáttur af listanum
myList.remove(item) # Removes first instance of "item" from myList
myList.pop(i) # Removes and returns item at myList[i]
eyða gildi í lista python
list.remove(element)
fjarlægja gildi frá python lista með því að verðmæti
>>> a = ['a', 'b', 'c', 'd']
>>> a.remove('b')
>>> print a
['a', 'c', 'd']
hvernig á að eyða hlut frá lista python
myList = ['Item', 'Item', 'Delete Me!', 'Item']
del myList[2] # myList now equals ['Item', 'Item', 'Item']
hvernig á að fjarlægja þáttur frá lista í python og það prenta
pop(n) removes the element at the given index number and can print it