Question: Create three functions that each accept three parameters. The first function should be named sum_function and should return the sum of all numbers (add them

Create three functions that each accept three parameters.

The first function should be named sum_function and should return the sum of all numbers (add them all together)

The second function should be named product_function and should return the product of all numbers (multiply them all together)

The third function should be named average_function and should return the average of all numbers

HINT: The average is the sum divided by the number of items.

Print out the result of calling each function. For example:

print(sum_function(1, 2, 3)) 

Should print:

6 

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!