Welcome to the Treehouse Community
Looking to learn something new?
Add a new property to the Rectangle class named area. It should calculate and return the area of the Rectangle instance (width * length).
i dont know what's wrong with the code
class Rectangle: def __init__(self, width, length): self.width = width self.length = length @property def area(self): return self.width*self.length
Steven Parker216,120 Points
I don't see anything wrong with this code. So I pasted it directly into the challenge, and it passed task 1!