scores = {" liu ": 45, " Xiaohong ": 68, " millet ": 96, " The small white ": 65, " Little dream ": 75} highest = max(scores.values()) lowest = min(scores.values()) average = sum(scores.values()) / len(scores) # print(" The average value is :"+str(average)) max_keys = [k for k, x in scores.items() if not any(y > x for y in scores.values())] print(' The highest achievement is :') for student in max_keys: print(student) min_keys = [k for k, x in scores.items() if not any(y < x for y in scores.values())] print(' The lowest score is :') for student in min_keys: print(student) personName = [k for k, v in scores.items() if v < average] print(" Below average students :") for student in personName: print(student)