def test_move_center(self): """C-5A. Verify moving center Point of Circle works.""" expected = ((6, 2), 1.5) point = Point(2, 3) circle = Circle(point, 1.5) point.x = 6 point.y = 2 self.assertEqual(circle_data(circle), expected)
from shapes import Point p1 = Point(4, 5) print(p1.x) # 4 print(p1.y) # 5 p1.x = 23 p1.y = 17 print(p1.x) # 23 print(p1.y) # 17