215k views
0 votes
Write a function named print_product that accepts three numbers as parameters and prints the product. First, write the print_product function. Then, prompt the user for three inputs, and call your print_product function on those inputs.

PYTHON LANGUAGE
7.3 Code Practice

User Jdgower
by
7.3k points

1 Answer

5 votes

Answer:

Step-by-step explanation:

Here is the print_product function:

def print_product(a, b, c):

print(a * b * c)


To prompt the user for three inputs and call the function, you can use the following code:

a = int(input("Enter the first number: "))

b = int(input("Enter the second number: "))

c = int(input("Enter the third number: "))

print_product(a, b, c)

This will prompt the user to enter three numbers, and then it will call the print_product function with those numbers as arguments. The function will then print the product of the three numbers.

User Mike Boutin
by
7.5k points