Question: Objective: Create a Python program that stores student scores for multiple subjects using a combination of lists and dictionaries. Bob': { Math ' : 7

Objective: Create a Python program that stores student
scores for multiple subjects using a combination of lists
and dictionaries.
Bob': {Math': 78,Science': 82,English': 88}}
Tasks:
Create a new list called student_names that
contains the names of all students.
Add a new student named 'Alice' to the scores
dictionary with scores for the same subjects (Math,
Science, and English).
Write a function called average_score(subject) that
takes a subject name as input and returns the
average score for that subject across all students.
Use the student_names list to iterate over each
student's scores and calculate their overall average
score using the average_score(subject) function.
 Objective: Create a Python program that stores student scores for multiple

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!