April 1999
Beginner
384 pages
11h 15m
English
Content preview from Learning PythonBecome 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,
Start your free trial



Summary
In this chapter, we’ve met Python’s built-in object types—numbers, strings, lists, dictionaries, tuples, and files—along with the operations Python provides for processing them. We’ve also noticed some of the themes underlying objects in Python along the way; in particular, the notions of operation overloading and type categories help to simplify types in Python. Finally, we’ve seen a few common pitfalls of built-in types.
Almost all the examples in this chapter were deliberately artificial to illustrate the basics. In the next chapter, we’ll start studying statements that create and process objects and let us build up programs that do more realistic work.