Intermediate
Python
Q54 / 101
What does the @property decorator do?
Correct! Well done.
Incorrect.
The correct answer is B) Makes a method callable without parentheses, acting as a computed attribute
B
Correct Answer
Makes a method callable without parentheses, acting as a computed attribute
Explanation
@property allows a method to be accessed like an attribute (obj.value instead of obj.value()). Use @name.setter and @name.deleter for write/delete access.
Progress
54/101