Three more containers complete the tour of collections: a double-ended queue that is fast at both ends, a dictionary that cares about order when it compares, and a view that layers several dictionaries into one. After them comes the question that matters most in practice: given a job, which collection should you pick, and what does that choice cost?
More lessons in Complete Python Programming