Skip to content

Glossary: Python Beyond the Basics

attribute

Also written: attributes

A value stored on an object, such as `self.balance` on a gift card. In a dataclass the attributes are called fields.

Where the book teaches it

Related terms

classinstancedataclass