Fill the blank
# expose a computed attribute
class Box:
@____
def area(self):
return self.w * self.h
Answer: property
@property lets the method be read like a plain attribute.
Play Problem Solving ▸
# expose a computed attribute
class Box:
@____
def area(self):
return self.w * self.h
Answer: property