diff --git a/point.py b/point.py index d9d0bc9..8760254 100644 --- a/point.py +++ b/point.py @@ -13,7 +13,7 @@ class Point: raise TypeError("You can compare only Point with Point") def __hash__(self) -> None: - return int(f"{self.x}000{self.y}") + return int(f"{abs(self.x)}000{abs(self.y)}") def __str__(self) -> str: return f"{self.x = } | {self.y = }"