Question: Create a new dictionary where the key is the student's name, and the value is the average of their scores. Print the new dictionary. Example
Create a new dictionary where the key is the student's name, and the value is theaverageof their scores. Print the new dictionary.
Example Code
python
Copy code
# Create a dictionary with averages
averagescores name: sumscores lenscores for name, scores in students.items
# Print the new dictionary
print
Average Scores:"
for name, avg in averagescores.items:
printname: avg
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
