list python remove first element code example
Example 1: python pop front of list
>>> l = ['a', 'b', 'c', 'd']
>>> l.pop(0)
'a'
>>> l
['b', 'c', 'd']
>>>
Example 2: remove first member from list
# 0 is the member you want to remove
list.pop(0)
>>> l = ['a', 'b', 'c', 'd']
>>> l.pop(0)
'a'
>>> l
['b', 'c', 'd']
>>>
# 0 is the member you want to remove
list.pop(0)