''' This is a module of Rectangle class. ''' class Rectangle(object): def __init__(self, length, width): self.length = length self.width = width def area(self): ''' Returns the area of the rectangle. ''' return self.length * self.width def is_square(self): ''' Finds out if it is a square or not. ''' return self.length == self.width