Question: Need help with the following python exercise. Please dont copy and paste code from other questions. Write a simple python prog. That does the following:
Need help with the following python exercise. Please dont copy and paste code from other questions.
Write a simple python prog. That does the following:
Define a class in Python and use it to create an object and display its components.
Define a Student class with the following components (attributes):
Name
Student number
This class includes several methods: to change the values of these attributes, and to display their values.
Separately, the main program must:
request the corresponding data from input and create a Student object.
invoke a method to change the value of one of its attributes of the object
invoke a method to that displays the value of each attribute.
(dont hard code any input data in the source code)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
