1@property decorator is a built-in decorator in Python which is helpful in defining the properties effortlessly without manually calling the inbuilt function property(). Which is used to return the property attributes of a class from the stated getter, setter and deleter as parameters.
2class Student:
3
4 def __init__(self, name):
5 self.__name = name
6
7 @property
8 def name(self):
9 return self.__name
10