Refer to the code below for the following 2 questions: cla…
Refer to the code below for the following 2 questions: class House: def __init__(self, doors, windows): self.doors = doors self.windows = windows def __str__(self): return f”A house with {self.doors} doors and {self.windows} windows” def __repr__(self): return f”This house has {self.doors} doors and {self.windows} windows” def __lt__(self): return self.doors * self.windows < other.doors * other.windows my_house = House(4, 5) your_house = House(5, 4)
Read Details