class Rectangle(object):
def __init__(self, (top left corner), width, height):
"""
__init__(self, (x, y), integer, integer)
"""
self._x = x
self._y = y
self._width = width
self._height = height
def get_bottom_right(self):
x + self.width = d
y + self.height = t
return '' + d,t
so i am trying to make a class for a rectangle, i am trying to find the bottom right of the rectangle. the bottom right of the rectangle can be found by adding the height and width onto the top left corner. eg. (2,3),4,7 would make the bottom corner be (6,10). however, i dont believe my code is right. this is my first time using classes so some hints and tricks on how to interpret this would be very helpful.