# Python program to enter the length and breadth of a rectangle and find its area

ADVERTISEMENTS

Python program to enter the length and breadth of a rectangle and find its area. There are you will learn how to find the area of a rectangle in Python language.

**Formula:**

*P = l * w*

**where:**

`P`

= perimeter

`l`

= length of the rectangle

`w`

= width of the rectangle

Let us understand this through the Python program:

```
# Python program to find the area of a rectangle
print("Enter the length & width of the rectangle::\n")
l, w, a = float(input()), float(input()), None
# Calculate area of the rectangle
a = l * w
print("\nArea of rectangle = ", a, "units")
```

**Output:**

Enter the length & width of the rectangle::

5

7

Area of rectangle = 35.0 units