Question: Python question Write a function that takes a list of numbers and returns the average of the values in the list. Also write a main,

Python question

Write a function that takes a list of numbers and returns the average of the values in the list.

Also write a main, that calls you function and returns the average. Your main should print both the list and the average returned by the function.

Your output should look like the line below, the values you use could differ:

The average of [12.1, 12.5, 12.9] is 12.5

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!