Chapter 6. Sequences: Strings, Lists, and Tuples

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 ...

Get Core Python Programming 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.