ปลั๊กอินสำหรับไพธอนลบออกจากรายการอีลีเมนต์
myList.remove(item) # Removes first instance of "item" from myList
myList.pop(i) # Removes and returns item at myList[i]
ลบค่าอยู่ในรายชื่อเป็นภาษาไพธอน
list.remove(element)
ลบค่าจากภาษาไพธอนรายการโดยค่า
>>> a = ['a', 'b', 'c', 'd']
>>> a.remove('b')
>>> print a
['a', 'c', 'd']
ยังไงจะลบการรายการจากรายการเป็นภาษาไพธอน
myList = ['Item', 'Item', 'Delete Me!', 'Item']
del myList[2] # myList now equals ['Item', 'Item', 'Item']
ยังไงจะลบธาตุจากรายการภาษาไพธอนและการพิมพ์มัน
pop(n) removes the element at the given index number and can print it