def area(length, height):

area = length * height

return area

A.
She has forgotten to call her function.

B.
She has forgotten to print the area inside the function.

C.
She has forgotten capitalize the name of the function.

D.
She has forgotten to unindent the return statement.

Respuesta :

Following are the python complete code 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.

  • In this code, the method call is missing therefore, the final answer is "Option A".

Learn more:

brainly.com/question/24819022

Ver imagen codiepienagoya
ACCESS MORE
EDU ACCESS