Python - How to Stack the Deque - Working with Deque Data Structures
Published on Thu, 28 Sep 2017
By Harlin Seritt
A deque object is similar to a stack or a queue and is initialized left-to-right from an iterable value (or empty). In case you're wondering, deque is pronounced "deck" and stands for "double-ended queue."
Deques are thread-safe and memory efficient. They can be appended, extended or "popped" from either ...