Question: Problem 2 [Python Class Inheritance and Basic Programming 40%) Please define a class named student list that is derived from Python list. Since student list
Problem 2 [Python Class Inheritance and Basic Programming 40%) Please define a class named student list that is derived from Python list. Since student list is derived from list, everything defined in list should be automatically inherited (into student list). After you define student_list, please write a python script to build a student-list object using similar steps you followed for homework #1 : a. The script instantiates a student list object. b. The script gets the number of students via command line. c. The script gets the data for each student via command line. d. The script parses the data in step c into a list and instantiates a student object using the list. e. The script adds the student object created in step d to the student list object (in step a) f. Use the print0 function to print the student objects in student list object. Please make sure that print0 is able to output the content of each student object. You need to implement one of the magic method for student class
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
