Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started