Question: This program will be ran through a Python 3 IDE. The function avgavg() takes as input a list whose items are lists of three numbers.

This program will be ran through a Python 3 IDE.

The function avgavg() takes as input a list whose items are lists of three numbers. Each three-number list represents the three grades a particular student received for a course. For example, here is an input list for a class of four students:

[[95, 92, 86], [66, 75, 54], [89, 72, 100], [34, 0, 0]]

The function avgavg() should print, on the screen, two lines. The first line will contain a list containing every student's average grade. The second line will contain just one number: the average class grade, defined as the average of all student average grades.

Here is an example of how the function should work:

>>> avgavg([[95, 92, 86], [66, 75, 54], [89, 72, 100], [34, 0, 0]])

[91.0, 65.0, 87.0, 11.333333333333334]

63.5833333333

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!