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.
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.