8 Storing collections of data


What you will learn

You might find this surprising, but you’ve already learned most of what you need to know to tell a computer what to do. You can write a program that stores items of data, makes decisions based on data values, and repeats behaviors as long as particular conditions are true. You can also create functions that accept data, perform actions on that data, and return results. These are the fundamentals of programming, and all programs are built on these core capabilities.

However, there’s one more thing you need to know before you can write most any kind of program. You must understand how to manage ...

Get Begin to Code with Python 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.