Question: ***PYTHON*** I need PYTHON codes for this question. Also a little explanation and full screenshots of the codes. Question 2 Create a class called Student.
***PYTHON***
I need PYTHON codes for this question. Also a little explanation and full screenshots of the codes.

Question 2 Create a class called Student. Data Attributes: Id:int Name:string Address:string Program:string current_courses:[] # Contains a list of course IDs completed_courses:{} # Contains a mapping from Courseld to marks obtained. Methods: . _init__(self, id, name, address, program) get_desciption(self) # Prints student details such as id, name, program, current course list in a proper formatted way, completed course list with marks in a tabular fashion. add_course(self, course_id) # Add a course object to the list of current courses drop_course(self, course_id) # Remove the course from the current course list course_completed(self, course_id, marks_obtained) # Adds the course and the marks to the completed_courses dictionary Notes: 1. Document the public interface similar to the one shown above. 2. drop_course should raise a ValueError exception if course is not found in th 3. Use exception handling when possible. Submission you should submit only one file which should look something like this: assignment_2.py class BankAccount: pass class Student: pass def main(): # your test code for the two classes '_main__': if _name__ - main()
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
