From 5fc13e0e0790d06b64806695063c3f3cdff5fa46 Mon Sep 17 00:00:00 2001 From: Pascal Lais Date: Mon, 9 Mar 2020 20:14:39 +0100 Subject: [PATCH] Fix method set_y --- point.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/point.py b/point.py index 52c5bf7..1935ae4 100644 --- a/point.py +++ b/point.py @@ -25,7 +25,7 @@ class Point(): if int == type(new_y): self.__y = new_y elif float == type(new_y): - self.__x = int(new_y) + self.__y = int(new_y) else: raise Exception(self, "Type of y has to be int") def get_y(self):