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.1m questions
6.7m answers