class Point: def __init__(self, cord): self.x = cord[0] self.y = cord[1] def get_cord(self): return (self.x, self.y) def get_x(self): return self.x def get_y(self): return self.y def set_cord(self, cord): self.x = cord[0] self.y = cord[1]