Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Administration The Complete Guide To Dba Practices And Procedures

Authors: Craig S. Mullins

2nd Edition

0321822943, 978-0321822949

Students also viewed these Databases questions

Question

Explain the difference between the WHERE and HAVING clause.

Answered: 1 week ago

Question

6. How do histories influence the process of identity formation?

Answered: 1 week ago