9 Use classes to store data
What you will learn
We know that a computer program is something that takes data in, does something with it, and then produces output. Programming is the creation of instructions that tell the computer what to do with incoming data. Data can be stored in single values or in collections of data. In this chapter, we’ll examine features of the Python programming language that let programmers design data storage that maps to the needs of a specific program. We’ll learn how to create classes that can be used to treat complex collections of data as single objects. We’ll learn how to use objects to make programs easier to ...
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.