pop element from list pytohn code example
Example 1: delete element list python
list.remove(element)
Example 2: how to pop things out of list python
>>> l = ['a', 'b', 'c', 'd']
>>> l.pop(0)
'a'
>>> l
['b', 'c', 'd']
list.remove(element)
>>> l = ['a', 'b', 'c', 'd']
>>> l.pop(0)
'a'
>>> l
['b', 'c', 'd']