Define a class Student that keeps track of the academic record of students in a school.The class should contain the following instance data members:rollNo: Roll number of the studentname: Student nameclassSection: class and section of the studentmarksList: List of marks in five subjectsThe class should support following methods:__init__ for initializing the data memberssetMarks to set marks for five subjectscomputeTotal for returning the total of the marks__str__ that display information about an employeeInclude assert statements in appropriate functions to ensure that the marks in the marksList are >= 0 and <=>=>Also write statements for the following:• create an object S1 of this class for Rajesh of IX C having roll no. as 19 and marksas 92, 96, 83, 97 and 91.• display the details of this student using __str__ function
(Question of python)
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here