object

A piece of data in memory together with the operations, called methods, that belong to it; in Python every value is an object.

In more detail

Every Python object has an identity, a type and a value, and its type decides which methods it has. Variables are names that refer to objects, and containers such as lists store references to objects rather than the objects themselves. The id() function shows an object's identity, and you make your own kinds of object by writing a class.

Related terms

Taught in

References

Certification courses