Книга: Practical Programming, Fourth Edition
Назад: Exercises
Дальше: Storing and Accessing Data in Lists

Chapter 8
Storing Collections of Data Using Lists

Lists can contain zero or more objects

Up to this point, you have seen numbers, Boolean values, strings, functions, and a few other types. Once one of these objects has been created, it is immutable: it can’t be modified. In this chapter, you will learn how to use a Python data type named list. Lists may contain zero or more objects and are used to store ordered collections of data. Unlike the other types you’ve learned about, lists can be modified.

Назад: Exercises
Дальше: Storing and Accessing Data in Lists