python delete list from 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: python list remove all elements
l = [1,2,3,4]
l.clear()
>>> a = ['a', 'b', 'c', 'd']
>>> a.remove('b')
>>> print a
['a', 'c', 'd']
l = [1,2,3,4]
l.clear()