# Attribute

*noun*

say it: **“AT-ruh-byoot”** **/ˈætrəˌbjut/**

A piece of data that belongs to an object, reached with a dot, such as novel.pages.

## What is an **attribute**?

An **attribute** is a piece of data that belongs to an object, reached with a dot.

```python
class Book:
    def __init__(self, title, pages):
        self.title = title
        self.pages = pages

novel = Book("Dune", 412)
print(novel.pages)  # 412
```

## In a sentence

- “Each book object has a title **attribute** and a pages **attribute**.”
- “account.balance reads the balance **attribute** of one account.”

Level: Journeyman · [More Python terms at this level](https://www.ask-codey.com/glossary?category=python&level=3)

Updated: November 19, 2026

## In other subjects

- [Attribute in C#](https://www.ask-codey.com/glossary/attribute-c-sharp)
- [Attribute in Database](https://www.ask-codey.com/glossary/attribute-database)
- [Attribute in HTML](https://www.ask-codey.com/glossary/attribute-html)

Source: https://www.ask-codey.com/glossary/attribute
