class ponto: def __init__(self, x, y): self.x = x self.y = y def __eq__(self, other): if self.x == other.x and self.y == other.y: return True else: return False def __gt__(self, other): if self.x > other.x: return True elif self.x == other.x and self.y > other.y: return True else: return False def __lt__(self, other): if self.x < other.x: return True elif self.x == other.x and self.y < other.y: return True else: return False