Answered step by step
Verified Expert Solution
Question
1 Approved Answer
4. Implement function avg0 that takes as input a list that contains lists of numbers. Each list represents the grades a particular student received fro
4. Implement function avg0 that takes as input a list that contains lists of numbers. Each list represents the grades a particular student received fro 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 student's avarage grade. You may assume the list of grades is not empty., bu you should not assume that every student has the same numer of grades Python 3,7.0 Shell File Edit Shell 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, [33, 0, 011) 90.0 60.0 87.0 11.0 >>> avg (I100, 70. 86, 901. [66, 54. 01, [100. 1001, [33. 50,9011) 86.5 40.0 100.0 57.666666666666664 Ln: 15 Col: 0
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