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
average_scores ={name: sum(scores)/ len(scores) for name, scores in students.items()}
# Print the new dictionary
print("
Average Scores:")
for name, avg in average_scores.items():
print(name,":", avg)

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 Programming Questions!