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

Evaluation10 points: 3 points forinit; 3 points forrepr;3 points forstudent_dict; 1 point for colleague response
Define a class calledStudent. EachStudentobject has the following instance variables:name,id_number,gpa,phone, andemail. They are all strings.init(3 pts) has parameters corresponding to each instance variable, in the above order. Assign the parameters to the corresponding instance variables. Write arepr(3 pts) so that aStudentobject prints like this:
Name: Syd
ID: 123456789
GPA: 3.27
Phone Number: 520-555-5555
Email: syd@email.arizona.edu
Write an instance method calledstudent_dict(3 pts) that takes no arguments and returns a dictionary that maps the student's name to a list containing his/her student information. The list will have the orderid_number,gpa,phone,email.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!