Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 getgrade method.
Write a separate function called basicstats 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 basicstats 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
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