Question
Write a class for describing student. It includes three attributes: studentID, name and score, in which score should be a list to contain scores of
Write a class for describing student. It includes three attributes: studentID, name and score, in which score should be a list to contain scores of several courses. This class also includes a method named as get_ID for returning studentID, a method named as get_name for returning student's name, a method named as get_max_score for returning the max score of this student, a method named as get_mean_score for returning the mean score of this student.
Then write two instances of this class with different studentID, different name, and different number of scores, print studentID, name, scores, max score and mean score for each student.
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