What is the purpose of the property decorator in Python?

What is the purpose of the property decorator in Python? Correct Answer To define a getter method for a class attribute

The property decorator is used to define a getter method for a class attribute.

Related Questions

What is the purpose of the @staticmethod decorator compared to the @classmethod decorator?
What is the purpose of the @classmethod decorator compared to the @staticmethod decorator?
In Python, what is the purpose of the @property decorator?
What is the purpose of the @property decorator in Python classes?
What is the purpose of the @property decorator in Python?
What is the difference between a class-based decorator and a function-based decorator?
What is the purpose of the @wraps decorator in Python's functools module?
What is the purpose of the @staticmethod decorator in Python classes?
In Python, what is the purpose of the @classmethod decorator?