p1 = Point(10, 20) p2 = Point(30, 100) print('Should be Point(20.0, 60.0)', p1.halfway_to(p2)) print('Should be Point(20.0, 60.0)', p2.halfway_to(p1)) print('Should be Point(10.0, 20.0)', p1.halfway_to(p1)) p3 = Point(-10, 20) p4 = Point(30, -100) print('Should be Point(10.0, -40.0)', p3.halfway_to(p4)) print('Should be Point(10.0, -40.0)', p3.halfway_to(p4)) print('Should be Point(-10.0, 20.0)', p3.halfway_to(p3))