AI engineering glossary · Python advanced

What is attribute?

Attribute: A named piece of data or behaviour attached to an object, reached with dot notation. It may hold a plain value or a method. Python looks it up on the object first, then on its class and parent classes.

Level: beginnerTopic: Python advanced

Attribute: an example

student.name reads the name attribute; student.grade = 'A' creates or updates the grade attribute.

Related terms

More Python advanced terms

Where you learn it

Attribute is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.