Following are the <em><u>python complete code </u></em>to calculate the area:
Program Explanation:
- Defining a method "area" that takes two variables "length, height" in the parameters.
- Inside the method, a variable "area" is declared that calculates the area by multiplies "length and width".
- After calculating the area a return keyword is used that returns its value.
- Outside the method, a print method is declared that calls the area method by accepting value into its parameters.
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.
- <u>In this code, the </u><u>method call</u><u> is missing therefore, the final answer is</u> "Option A".
Learn more:
brainly.com/question/24819022