Given print_larger, a function that expects two parameters and returns no value and given two variables, sales1 and sales2, that have already been defined, write a statement that calls print_larger, passing it sales1 and sales2.

Respuesta :

Answer:

print_larger(sales1, sales2)

Explanation:

A function is used to define a group of statement that performs a specific task. A function is used to manage or break our code into understandable smaller chunk.  A function can be reused in another program.

For example a function can be written to calculate the area of a rectangle, the function will accept parameter like the length and breadth and below the defined function the computation will be written. in python

def area(L, B):

      a = L * B

area(4, 8)

Functions can accept parameters. Calling the function will demand you to input the required parameters .

In the question the function is already defined as print_larger  and it expects two parameters . To call empty function we have to call it like  print_larger(sales1, sales2)  and also filling the required parameters.

ACCESS MORE
EDU ACCESS