My code:
def __init__(self, x, y):
self.x = x
self.y = y
class Rectangle:
def __init__(self, location, width, height):
self.location = location
self.width = width
self.height = height
def getWidth(self):
return self.width
def getHeight(self):
return self.height
def perimeter(self):
perimeter = 2 * (self.width + self.height)
return perimeter
def grow(self, delta_width, delta_height):
self.width += delta_width
self.height += delta_height
def move(self, dx, dy):
self.location.x += dx
self.location.y += dy```