Chapter 14
Collecting All Sorts of Data
IN THIS CHAPTER
Defining a collection
Using tuples and dictionaries
Developing stacks using lists
Using the queue and deque packages
People collect all sorts of things. The CDs stacked near your entertainment center, the plates that are part of a series, baseball cards, and even the pens from every restaurant you’ve ever visited are all collections. The collections you encounter when you write applications are the same as the collections in the real world. A collection is simply a grouping of like items in one place and usually organized into some easily understood form.
Get Beginning Programming with Python For Dummies, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.