diff --git a/01-challenge-problem.py b/01-challenge-problem.py index 7321049..16037a5 100644 --- a/01-challenge-problem.py +++ b/01-challenge-problem.py @@ -1,17 +1,17 @@ -class Point: +class point: def __init__(self, coordX, coordY): self.coordX = coordX self.coordY = coordY class Rectangle: - def __init__(self, starting_point, broad, high): + def __init__(self, starting_point, width, height): self.starting_point = starting_point - self.broad = broad - self.high = high + self.width = width + self.height = height def area(self): - return self.broad * self.high + return self.width * self.height def end_points(self): top_right = self.starting_point.coordX + self.broad @@ -22,14 +22,14 @@ def end_points(self): print('End Point Y-Axis (Bottom Left): ' + str(bottom_left)) -def build_stuff(): +def coordinates(): main_point = Point(50, 100) rect = Rectangle(main_point, 90, 10) return rect -my_rect = build_stuff() +my_rect = coordinates() print(my_rect.area()) my_rect.end_points()