Question
1. Use Spyder 2. Define a class called Student a. Attributes (private) i. First name ii. Last name iii. Student ID 3. Add get() and
1. Use Spyder
2. Define a class called Student
a. Attributes (private)
i. First name
ii. Last name
iii. Student ID
3. 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
4. Add a __str__() function to Student class
a. This function will create a string of a students information (the attributes)
EXAMPLE:
5. Create 2 students then output their information
6. Output each students information
7. Change the second students first name to your first name
8. Output each students information
9. Output just the first name of student 2
10. Use correct naming conventions and docstrings
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
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