Question: using python import statistics module. Write a class called Student that has two private data members: name, grade. It should have an init method that

using python import statistics module.
Write a class called Student that has two private data members: name, grade. It should have an init method that takes two values and uses them to initialize the data members. It should have a get_grade method.
Write a separate function called basic_stats that takes as a parameter a list of Student objects and returns a tuple containing the mean, median, and mode of all the grades. To do this, use the mean, median and mode functions. Your basic_stats function should return those three values as a tuple, in the exact order given above.

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!