<AptiCode/>

Question 467: How does the@propertydecorator differ from regular methods in a Python class?

tcs
wipro
infosys
general
aptitude
decorators

The@propertydecorator is used to define read-only properties in a class. It allows you to access a method as an attribute without the need for explicit getter methods. However, it doesn't provide a setter method, making the property read-only.