From 8d09477a169192a4a92ff5b87bffe78afe438efd Mon Sep 17 00:00:00 2001 From: Subhajit Tewary <48327032+subhajittewary@users.noreply.github.com> Date: Wed, 3 Jul 2024 15:36:22 +0530 Subject: [PATCH] Update 02-challenge-solution.py The variable name bottom_left in the provided code is misleading. Based on the calculation (self.origin.y + self.height), it actually refers to the y-coordinate of the top-left corner, not the bottom-left corner. Requesting a review to this change. --- 02-challenge-solution.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/02-challenge-solution.py b/02-challenge-solution.py index fc4544e..439dfbb 100644 --- a/02-challenge-solution.py +++ b/02-challenge-solution.py @@ -15,7 +15,7 @@ def get_area(self): def print_coordinates(self): top_right = self.origin.x + self.width - bottom_left = self.origin.y + self.height + top_left = self.origin.y + self.height print('Starting Point (X)): ' + str(self.origin.x)) print('Starting Point (Y)): ' + str(self.origin.y)) print('End Point X-Axis (Top Right): ' + str(top_right))