In this tutorial, we will see a Python program to find the area of the rectangle. As we know, a simple mathematical formula to find the area of a rectangle.
Area of Rectangle formula
Area of rectangle = Length * Breadth
So, for finding the area of the rectangle, we must know the length and breadth of the rectangle. Therefore we take the length and breadth of the rectangle as input. Then we will find the area by multiplying these values.
Python Program to find the area of a rectangle
print("Enter the length of rectangle")
Length = int(input())
print("Enter the breadth of rectangle")
Breadth = int(input())
Area = Length*Breadth
print("Therefore area of reactangle is :",Area)
Output
Enter the length of rectangle
12
Enter the breadth of rectangle
10
Therefore area of reactangle is : 120