Question: IN PYTHON (Sort students by grades) Rewrite Listing 11.2 which is below, GradeExam.py, to display the students in increasing order of the number of correct

IN PYTHON (Sort students by grades) Rewrite Listing 11.2 which is below, GradeExam.py, to display the students in increasing order of the number of correct answers

IN PYTHON (Sort students by grades) Rewrite Listing 11.2 which is below,

1 def mainO # Students' answers to the questions answers 2-D list 10 12 13 14 # Key to the keys- ['D', questions 'B', 'D', 'C' , 'C', 'D', 'A' , E', 'A' 'D'] 1-D list , 368 Chapter Multidimensional Lists 15 16 17 18 19 20 21 # Grade all answers for i in range(len (answers)): # Grade one student correctCount0 for j in range(len (answers[i])): if answers[i]j] keys correctCount 1 compare with key j]: 23 24 25 26 main() # Call the main function print("Student", i, "s correct count is", correctCount) Student 0's correct count is 7 Student 1's correct count is 6 Student 2"s correct count is 5 Student 3's correct count is 4 Student 4's correct count is 8 Student 5's correct count is 7 Student 6's correct count is 7 Student 7's correct count is 7

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!