Ask Question
1 November, 05:21

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.

+2
Answers (1)
  1. 1 November, 07:01
    0
    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.
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Given print_larger, a function that expects two parameters and returns no value and given two variables, sales1 and sales2, that have ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers