You are viewing a single comment's thread. Return to all comments →
if __name__ == '__main__': students={} for _ in range(int(input())): name = input() score = float(input()) students[name]=score min_value = min(students.values()) students = {k: v for k, v in students.items() if v>min_value} min_value = min(students.values()) students_names = dict(filter(lambda item: item[1]==min_value,students.items())) students_names = sorted(students_names.keys()) for st in students_names: print(st)
Seems like cookies are disabled on this browser, please enable them to open this website
Nested Lists
You are viewing a single comment's thread. Return to all comments →