AI engineering glossary · Python advanced
What is instance attribute?
Instance attribute: A piece of data stored on one specific object, usually assigned inside __init__ through self. Each object has its own value, so changing it on one object does not affect the others.
Instance attribute: an example
self.balance = 0 in __init__ gives every Account its own balance; depositing to one leaves the rest unchanged.
Related terms
More Python advanced terms
Where you learn it
Instance 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.