<AptiCode/>

Question 500: What is the purpose of the@propertydecorator?

tcs
wipro
infosys
general
aptitude
encapsulation
python-programming

The@propertydecorator is used in Python to define a getter method for a class attribute, allowing controlled access.