Search⌘ K

Challenge: Create a Dictionary and Replace Key-value Pairs

Explore how to create a Python dictionary for students’ scores, replace individual subject scores with total and average values, and determine the highest-scoring student. This hands-on challenge enhances your understanding of dictionary manipulation and Python data structures.

Problem statement

Create a dictionary that contains students’ names and scores obtained in three subjects. Write a program to replace the scores in the three subjects with the total and average scores. Also, report the top student in the class:

...