Question: Use Spyder Define a class called Student 1) Attributes (private) i. First name ii. Last name iii. Student ID 2) Add get() and set() functions
Use Spyder
Define a class called Student
1) Attributes (private)
i. First name
ii. Last name
iii. Student ID
2) Add get() and set() functions for each attribute of Student
a. The set() functions will allow the user to change information about a student
b. The get() functions will allow the user to access a students information
3) Add a __str__() function to Student class
a. This function will create a string of a students information (the attributes)
b. Example output:
Joan College, ID: 5678
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
