
C H A P T E R 7
Python Lists, Strings, and
Other Data Sequences
7.1 INTRODUCTION
Most programming languag es support arrays, which are one the mos t funda-
mental data structures. With an array, multiple values can be stored and each
is referenced w ith the name of the array and sp e cifying an index value. The
individual values of an array are known as elements.
Python uses lists , which are more general data structures that can be used
to represent arrays. This chapter discusses lists and other data sequences used
in Python. In a subseq ue nt chapter, the extensive array handling operations
and objects in the NumPy library will be discussed.
7.2 LISTS ...