Python 3.5: 1. Create a Student class, which contains the following: - a private String data field named id for the student - a private
Python 3.5:
1. Create a Student class, which contains the following: - a private String data field named id for the student - a private String data field named name for the student. - a private String data field named email that stores the email address of the student. - a private List data field named marks that stores a list of scores/marks of the student. - a constructor that creates a student with the specified name, id, and email address. - the accessor and mutator methods for id, name, email address and marks. - a __str__(self) method which returns a nicely formatted string representation of the student. In this case, the ID, name, email address and followed by the list of marks gained by the student should be printed. For example, an example is shown as below: N00000002: Kelly, kelly@bmail.com, marks: [7, 1] - an append_marks(self, marks) method which appends the marks to the end of the marks list.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
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