From ba3fdd62043728d5d083c736b504399e0dcd424b Mon Sep 17 00:00:00 2001 From: Pascal Lais Date: Wed, 11 Mar 2020 12:57:52 +0100 Subject: [PATCH] Fix 'point.py' --- point.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/point.py b/point.py index 91322d0..3536ff3 100644 --- a/point.py +++ b/point.py @@ -21,10 +21,10 @@ class Point(): def get_y(self): """Returns the Y-Coordinate of the Point""" return self.__y - def __eq__(self, other) + def __eq__(self, other): """Returns True if the points coordinates are the same, else returns False""" return self.get_x() == other.get_x() and self.get_y() == other.get_y() - def __ne__(self, other) + def __ne__(self, other): """Returns True if the points coordinates are the different, else returns False""" return self.get_x() != other.get_x() or self.get_y() != other.get_y() def __str__(self):