Chapter Topics
Introduction to Sequences
Strings
Lists
Tuples
The next family of Python types we will be exploring are those whose items are ordered and sequentially accessible via index offsets into the set. This group, known as sequences, includes the types: strings, lists, and tuples. We will first describe the general and common features followed by a closer examination of each type. We will first introduce all operators and built-in functions that apply to sequence types, then cover each sequence type individually. For each sequence type, we will provide the following information:
Introduction
Operators
Built-in Functions
Built-in Methods (if applicable)
Special Features (if applicable)
Related Modules (if applicable)
We will conclude this chapter with a reference chart that summarizes all the operators and built-in functions which apply to all sequence types. Let us begin by taking a high-level overview and examine the operators and built-in functions applicable to all sequence types.