Python Dictionaries and Tuples

Overview You already know lists. They're great for ordered collections of things – a shopping cart, a sequence of numbers, a set of results. But they're not the right tool for every job. This post covers two more data structures. First dictionaries – the most important data structure in Python, and the one you'll use constantly. Then tuples – which you'll actually encounter inside dict...