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