To find the area of a rectangle or a square you need to multiply the length and the width of a rectangle or a square. There are different units for perimeter and area. The perimeter has the same units as the length of the sides of rectangle or square whereas the area’s unit is squared.
In this example. I’ll show how to calculate Area and Perimeter of Rectangle in Python.
l=int(input("Length : "))
w=int(input("Width : "))
print("Area of Rectangle : ",area)
print("Perimeter of Rectangle : ",perimeter)