Chapter 3. Types and Objects

All the data stored in a Python program is built around the concept of an object. Objects include fundamental datatypes such as numbers, strings, lists, and dictionaries. It’s also possible to create user-defined objects in the form of classes or extension types. This chapter describes the Python object model and provides an overview of the built-in datatypes. Chapter 4, “Operators and Expressions,” further describes operators and expressions.

Get Python Essential Reference, Second Edition 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.