how to remove first element in list python code example
Example 1: remove first member from list
# 0 is the member you want to remove
list.pop(0)
Example 2: python delete first two indexes
l = [1, 2, 3, 4, 5]
del l[:3] # Here 3 specifies the number of items to be deleted.
Example 3: how to find first element in a list python
an_array = [1,2,3,4,5]
first element = an_array[0]