# Working With Python's deque

DevFeed: [Working With Python's deque](<https://devfeed.tech/articles/working-with-python-s-deque-4373.md>)

Original publisher: [Read original article](<https://realpython.com/courses/working-with-pythons-deque/>)

Author: Real Python

Published: 2026-08-18T14:00:00Z

Content type: tutorial

Language: en

Sources: [Real Python](<https://devfeed.tech/sources/real-python.md>)

Topics: [Data structures](<https://devfeed.tech/topics/data-structures.md>)

Tags: [benchmark](<https://devfeed.tech/tags/benchmark.md>), [code](<https://devfeed.tech/tags/code.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [learn](<https://devfeed.tech/tags/learn.md>), [python](<https://devfeed.tech/tags/python.md>), [tutorial](<https://devfeed.tech/tags/tutorial.md>), [video](<https://devfeed.tech/tags/video.md>)

## AI overview

A video tutorial on using Python's deque for efficient operations at both ends, including queues, stacks, bounded histories, and performance characteristics.

## Source excerpt

Learn how to use Python's deque to efficiently append and pop items from both ends, build queues and stacks, and set maxlen for bounded history.