I am very new to python and I would like to sort all the maximum scores into descending order. (There is a dictionary that stores the data for each student) At the moment it only prints the maximum scores of each student in the order the data is entered:
Maximum score
Adam Watts 7
Henry Lloyd 10
Lucy Smith 9
This is the code I am using:
print("Maximum score")
for key in keys:
print(key, max(Classes[key]))