Question: Implement function avg() that takes as input a list that contains lists of numbers. Each list represents the grades a particular student received from a

Implement function avg() that takes as input a list that contains lists of numbers. Each list represents the grades a particular student received from a course. For example, here is an input list for a class of four students:

[[95, 92, 86, 87], [66, 54], [89, 72, 100], [33, 0, 0]]

The function should print, one per line, every students average grade. You may assume the list of grades is not empty., but you should not assume that every student has the same number of grades.

Implement function avg() that takes as input a list that contains lists

Python 3.7.0 Shell File Edit Shell Debug Options Window Help Python 3.7.0 (v3.7.0: 1bf9cc5093, Jun 27 2018, 04:59:51) [MSC v.1914 64 bit (AMD6 4)] on win32 Type "copyright", "credits" or "license" for more information = RESTART: C: /Users/eve/AppData/Local/Programs/Python/Python37/a3Answers. py = >>>avg([[95, 92, 86, 87], [66, 54], [89, 72, 100], 133, 0, 0]]) 90.0 60.0 87.0 11.0 >>>avg ([[100, 70, 86, 90], [66, 54, 0], [100, 100], [33, 50, 90]]) 86.5 40.0 100.0 57.666666666666664 Ln: 15 Col: 0

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!