Question: In this part, you will use the student class that you created above in Exercise 1 and store multiple students' attributes in a single list

 In this part, you will use the student class that you

created above in Exercise 1 and store multiple students' attributes in a

In this part, you will use the student class that you created above in Exercise 1 and store multiple students' attributes in a single list that you will call: myStudentList. - You first need to create a list, and save 5 students' attributes as individual instances of the "Student" class in that list. (Create the first student instance and put it in the list as the first item, then create the second student instance, set its attributes and then enter it as the second item in your list, so forth so on.) - For each student info, you need to ask user to set that student's attributes. - Then you will print out a particular student's attributes to the screen. You will use the list (myStudentList). You will get the index from the user. If the index is larger than the list size, ask the user to enter another index. Implement a class called "Student" in Python. This class will have the following attributes: - name, - age, and - grade. After implementing the Student class: - create two instances of the "Student" class and - set the values of all the instance attributes including the name, grade and age of the student for each instance of the "Student" class. You can set the attributes to any meaningful values. (For example, the ages can be 18 and 19 ). After setting all the values for all the instances, print all the attributes of each student to the screen

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!