Today we will learn about how to write a program to find areas of the rectangle in Python. so let's get started.
Let us see is the formula to find the area of a rectangle.
A = L*W (Area of rectangle = Length*Width)
Let us assume that the length of a rectangle is 26 and the width is 12 like this
Here is the Code of the Python file for finding the area of a rectangle
# --------- Created By Coding Gyan ------------# Find area of Rectanglelength = int(input('Enter the length of the rectangle ')) # we have converted this string value of input into intigerwidth = int(input('Enter the width of the rectangle ')) # we have converted this string value of input into intigerareaOfRectangle = length*width # we have stored the area of rectangle in this varriableprint('Area of Rectangle is')print(areaOfRectangle)