Question: project-1 For this project, you will import the statistics module. Write a class called Student that has two private data members - the student's name

 project-1 For this project, you will import the statistics module. Write

project-1 For this project, you will import the statistics module. Write a class called Student that has two private data members - the student's name and 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 (not part of the Student class) 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 in the statistics module. Your basic_stats function should return those three values as a tuple, in the exact order given above. As an example, your code could be called as follows by the grader: You can test your program with the above example but make sure to not leave that as part of your submission. The file must be named: basic_stats.py

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!