remove list item by name python code example
Example 1: how to pop things out of list python
>>> l = ['a', 'b', 'c', 'd']
>>> l.pop(0)
'a'
>>> l
['b', 'c', 'd']
Example 2: python remove by index
a = [0, 1, 2, 3, 4, 5]
el = a.pop(2)
>>> l = ['a', 'b', 'c', 'd']
>>> l.pop(0)
'a'
>>> l
['b', 'c', 'd']
a = [0, 1, 2, 3, 4, 5]
el = a.pop(2)