Abstract
Prior to this chapter, we talked about four types of data: integer, float, string, and Boolean. But imagine that you want to represent a lot of data—for example, the names of all the students in a class, or better yet, the names of all students in a school, or a city, or a state. So far, our definition of a variable allows us to only represent a single piece of data. Therefore, if we wanted to represent a group of students’ names, we would do something like this.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2016 Irv Kalb
About this chapter
Cite this chapter
Kalb, I. (2016). Lists. In: Learn to Program with Python. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-2172-3_7
Download citation
DOI: https://doi.org/10.1007/978-1-4842-2172-3_7
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-1868-6
Online ISBN: 978-1-4842-2172-3
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)