5. Sequences: Lists and Tuples

Objectives

In this chapter, you’ll:

Image Create and initialize lists and tuples.

Image Refer to elements of lists, tuples and strings.

Image Sort and search lists, and search tuples.

Image Pass lists and tuples to functions and methods.

Image

Get Python for Programmers now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.