Question: Question 2 Write a python script: To perform some grade book functions asks for a class size, then a name and grade for each student.
Question 2 Write a python script: To perform some grade book functions asks for a class size, then a name and grade for each student. Generate an id number counting from zero. Prompt the user using a for loop to enter 3 values for each of the students in the class. Find the top three highest grades and print those students' names. Print the whole class list.
There will be a list that represents the class and a list the represents a student. Example Inputs/Outputs: Enter Number of Students: 5 Enter Student #1 Name: Bob Enter Student #1 Grade: 60 Enter Student #2 Name: Dave Enter Student #2 Grade: 85 Enter Student #3 Name: Sally Enter Student #3 Grade: 90 Enter Student #4 Name: Kevin Enter Student #4 Grade: 89 Enter Student #5 Name: Lucy Enter Student #5 Grade: 75 First Place is Sally Second Place is Kevin Third Place is Dave [[1, 'Bob', 60], [2, 'Dave', 85], [3, 'Sally', 90], [4, 'Kevin', 89], [5, 'Lucy', 75]]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
