Fix method set_y

This commit is contained in:
2020-03-09 20:14:39 +01:00
parent 70bb80e445
commit 5fc13e0e07

View File

@@ -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):