Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started