@Property lets you call a function of a class as an attribute:
xxxxxxxxxx
class Operation:
def __init__(self, a, b):
""" Create a new Operation Object"""
self.a = a
self.b = b
@property
def getSum(self):
return self.a + self.b
o = Operation(1, 2)
sum = o.getSum # Instead of p.getSum() since @property makes it an attribute