Implement Stacks (Last In First Out) and Queues (First In First Out, Last In First Out) in Python using Deque Collections and Perform Push, Pop, Clear, Reverse queue operations on python lists.
Read this post on idiotinside.com