n = float(input("base -> "))
n1 = float(input("height -> "))
area = (nn1)/2
perimeter = (n2) + (n1*2)
print("\nArea: {}, Perimeter: {}".format(area,perimeter))
n = float(input("base -> ")) n1 = float(input("height -> ")) area = (n*n1)/2 perimeter = (n*2) + (n1*2) print("\nArea: {}, Perimeter: {}".format(area,perimeter))
def rectangle(base, height):return f'The area of the rectangle is {base * height} and the perimeter is {(base * 2) + (height * 2)}'- n = float(input("base -> "))
- n1 = float(input("height -> "))
- area = (n*n1)/2
- perimeter = (n*2) + (n1*2)
- print("\nArea: {}, Perimeter: {}".format(area,perimeter))