The program which calculates the area of a rectangle written in python 3 is given thus :
def calc_area_rectangle(length, width):
#initialize a function named calc_area_rectangle which takes in two arguments
area= length * width
#the products of the arguments which are the length and width of value of the rectangle is assigned to the variable named area
return round(area, 2)
#the function returns the value of area rounded to 2 decimal places.
print(calc_area_rectangle(10, 20))
#sample run of the program
Learn more :https://brainly.com/question/25162828