Ask Question
29 January, 06:24

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. 29 January, 06:50
    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 & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers