class Point: def __init__(self, x, y): self.x = x self.y = y def inverted(self): return Point(self.y,self.x)