From d1567735ab44ca38eeb7199d41cc6979aac02cde Mon Sep 17 00:00:00 2001 From: lolabird Date: Fri, 16 Feb 2024 14:52:03 -0700 Subject: [PATCH] Rename folder, add new exercise file, comment out tests and import class Point into new file --- .../points.py | 8 ++++---- thinkcspy/Chapter-17-18-Exercises/rectangle.py | 4 ++++ 2 files changed, 8 insertions(+), 4 deletions(-) rename thinkcspy/{Chapter-17-Exercises => Chapter-17-18-Exercises}/points.py (96%) create mode 100644 thinkcspy/Chapter-17-18-Exercises/rectangle.py diff --git a/thinkcspy/Chapter-17-Exercises/points.py b/thinkcspy/Chapter-17-18-Exercises/points.py similarity index 96% rename from thinkcspy/Chapter-17-Exercises/points.py rename to thinkcspy/Chapter-17-18-Exercises/points.py index e53171d..f7fc7b3 100644 --- a/thinkcspy/Chapter-17-Exercises/points.py +++ b/thinkcspy/Chapter-17-18-Exercises/points.py @@ -77,7 +77,7 @@ class Point: def __str__(self): return "x=" + str(self.x) + ", y=" + str(self.y) -p = Point(7, 6) -q = Point(10, 3) -z = Point(8, 5) -print(p.findCenterRadius(q, z)) +# p = Point(7, 6) +# q = Point(10, 3) +# z = Point(8, 5) +# print(p.findCenterRadius(q, z)) diff --git a/thinkcspy/Chapter-17-18-Exercises/rectangle.py b/thinkcspy/Chapter-17-18-Exercises/rectangle.py new file mode 100644 index 0000000..c426331 --- /dev/null +++ b/thinkcspy/Chapter-17-18-Exercises/rectangle.py @@ -0,0 +1,4 @@ +from points import Point + +a = Point(5, 6) +print(a) \ No newline at end of file