In this article we will show you, How to write Python Program to find Area of a Rectangle using length and width with practical example.

## Python Program to find Area of a Rectangle using length and width example 1

This Python program allows user to enter the length and width of a rectangle. Using those two values, it will find the area of a rectangle.

**TIP :** If we know the length & width of a rectangle. The mathematical formula to calculate the area of a rectangle is : Area = Length * Width

# Python Program to find Area of a Rectangle using length and width length = float(input('Please Enter the Length of a Triangle: ')) width = float(input('Please Enter the Width of a Triangle: ')) # calculate the area area = length * width print("The Area of a Rectangle using", length, "and", width, " = ", area)

**OUTPUT**

## Python Program to calculate Area of a Rectangle using length and width example 2

This program to find area of a Rectangle is same as above. However, we separated the logic using functions concept.

# Python Program to find Area of a Rectangle using length and width def area_of_Rectangle(length, width): return length * width length = float(input('Please Enter the Length of a Triangle: ')) width = float(input('Please Enter the Width of a Triangle: ')) # calculate the area of a Rectangle area = area_of_Rectangle(length, width) print("The Area of a Rectangle using", length, "and", width, " = ", area)

**OUTPUT**