Following are the python complete code to calculate the area:
Program Explanation:
Program:
def area(length, height):#defining a method area that takes two parameters "length, height"
area = length * height#defining a variable area that calculates the area by multiplies length and width
return area#using return keyword that returns area value
print(area(9,8))#using a print method that calls area method by accepting the value
Output:
Please find the attached file.
Learn more:
brainly.com/question/24819022