AI engineering glossary · Python advanced

What is property?

Property (also called @property): A built-in feature that lets a method be read and set like a plain attribute, using the @property decorator. It allows validation or computed values while keeping simple attribute syntax for callers.

Level: intermediateTopic: Python advanced

Property: an example

@property def area(self): return self.w * self.h lets you write rect.area without parentheses.

Related terms

More Python advanced terms

Where you learn it

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