Question: Evaluation 1 0 points: 3 points for init; 3 points for repr; 3 points for student _ dict; 1 point for colleague response Define a
Evaluation points: points forinit; points forrepr; points forstudentdict; point for colleague response
Define a class calledStudent EachStudentobject has the following instance variables:nameidnumber,gpaphone andemail They are all strings.init pts has parameters corresponding to each instance variable, in the above order. Assign the parameters to the corresponding instance variables. Write arepr pts so that aStudentobject prints like this:
Name: Syd
ID:
GPA:
Phone Number:
Email: syd@email.arizona.edu
Write an instance method calledstudentdict pts that takes no arguments and returns a dictionary that maps the student's name to a list containing hisher student information. The list will have the orderidnumber,gpaphoneemail
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
