Fix method set_y
This commit is contained in:
2
point.py
2
point.py
@@ -25,7 +25,7 @@ class Point():
|
|||||||
if int == type(new_y):
|
if int == type(new_y):
|
||||||
self.__y = new_y
|
self.__y = new_y
|
||||||
elif float == type(new_y):
|
elif float == type(new_y):
|
||||||
self.__x = int(new_y)
|
self.__y = int(new_y)
|
||||||
else:
|
else:
|
||||||
raise Exception(self, "Type of y has to be int")
|
raise Exception(self, "Type of y has to be int")
|
||||||
def get_y(self):
|
def get_y(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user