Answer: Use pop() to remove an item from the “right” end of the deque and pop left() to take an item from the “left” end.
Step-by-step explanation:
5.6m questions
7.3m answers