I have a basic piece of coding which follows:
dict1 = [{"Name":"Ron","one":3,"two":6,"three":10}
,{"Name":"Mac","one":5,"two":8,"three":0}
,{"Name":"DUDE","one":16,"two":9,"three":2}]
print(dict1)
import operator
dict1.sort(key=operator.itemgetter("Name"))
print("\nStudents Alphabetised\n")
for pupil in dict1:
print ("StudentName",pupil["Name"],pupil["one"],pupil["two"],pupil["three"])
I have sorted out it so it will print out people's names in alphabetical order, however, I now need the code working so it would print out the names in alphabetical order, but also so it prints out the highest score only.