What is the purpose of the @property decorator in Python?
A. To define a setter method for a class attribute
B. To define a getter method for a class attribute
C. To add properties to classes
D. To define methods for instance attributes
Answer: Option B
Join The Discussion