Ask Question
8 October, 21:35

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.

+5
Answers (1)
  1. 8 October, 21:57
    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?
Find 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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers