how to remove elements form python list code example
Example 1: remove value from python list by value
>>> a = ['a', 'b', 'c', 'd']
>>> a.remove('b')
>>> print a
['a', 'c', 'd']
Example 2: deleting a list in python
# deletes whole list
thislist = ["apple", "banana", "cherry"]
del thislist