Create a Python function that evaluates students’ multiple-choice answers and computes their scores based on a set of correct answers.
grade_students(answers, keys)
answers
), where each sublist corresponds to an individual student’s answers to a set of questions.keys
) containing the correct answers for these questions.# Given Data
answers = [
['A', 'B', 'A', 'C', 'C', 'D', 'E', 'E', 'A', 'D'],
['D', 'B', 'A', 'B', 'C', 'A', 'E', 'E', 'A', 'D'],
# ... (additional student answers)
]
keys = ['D', 'B', 'D', 'C', 'C', 'D', 'A', 'E', 'A', 'D']
# Your Task: Write a Python program that grades the students' answers and displays their correct counts.
# Your code here...
Expected Output:
Student 0's correct count is 7
Student 1's correct count is 8
# ... (correct counts for other students)