Chapter 12

Managing Lists

In This Chapter

arrow Defining why lists are important

arrow Generating lists

arrow Looking through lists

arrow Working with list items sequentially

arrow Changing list content

arrow Locating specific information in lists

arrow Putting list items in order

arrow Using the Counter object to your advantage

A lot of people lose sight of the fact that most programming techniques are based on the real world. Part of the reason is that programmers often use terms that other people don’t to describe these real-world objects. For example, most people would call a place to store something a box or a cupboard — but programmers insist on using the term variable. Lists are different. Everyone makes lists and uses them ...

Get Beginning Programming with Python For Dummies 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.