import collectionsmylist = [0, 1, 2, 3, 4]
#make a deque from your listde = collections.deque(mylist)
#you can remove from a deque from either left side or right sidede.popleft()print(de)
#you can covert the deque back to listmylist = list(de)print(mylist)