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: Science: English:
Tasks:
Create a new list called studentnames 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 averagescoresubject that
takes a subject name as input and returns the
average score for that subject across all students.
Use the studentnames list to iterate over each
student's scores and calculate their overall average
score using the averagescoresubject function.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
