Python leftpop code example
Example 1: python pop front of list
>>> l = ['a', 'b', 'c', 'd']
>>> l.pop(0)
'a'
>>> l
['b', 'c', 'd']
>>>
Example 2: exclude first value of an array python
my_array=np.arange(10)
my_array[1:]
>>> l = ['a', 'b', 'c', 'd']
>>> l.pop(0)
'a'
>>> l
['b', 'c', 'd']
>>>
my_array=np.arange(10)
my_array[1:]