Ad

this code is given two variables, width and the height of a rectangle, returns area and perimeter. fork and make this code better.

test.

def sq(width,height):
    perimeter = width + width + height + height
    area = perimeter * perimeter - 7 * width * height - 4 * width * width - 4 * height * height
    return [area,perimeter]