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

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 Databases Questions!