Skip to Content
Automate the Boring Stuff with Python, 2nd Edition
book

Automate the Boring Stuff with Python, 2nd Edition

by Al Sweigart
November 2019
Beginner to intermediate
592 pages
14h 43m
English
No Starch Press
Content preview from Automate the Boring Stuff with Python, 2nd Edition

4LISTS

Image

One more topic you’ll need to understand before you can begin writing programs in earnest is the list data type and its cousin, the tuple. Lists and tuples can contain multiple values, which makes writing programs that handle large amounts of data easier. And since lists themselves can contain other lists, you can use them to arrange data into hierarchical structures.

In this chapter, I’ll discuss the basics of lists. I’ll also teach you about methods, which are functions that are tied to values of a certain data type. Then I’ll briefly cover the sequence data types (lists, tuples, and strings) and show how they compare with each other. ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Automate the Boring Stuff with Python

Automate the Boring Stuff with Python

Al Sweigart

Publisher Resources

ISBN: 9781098122584Errata Page