OMG... This is a hard one which took me 2 hours to finish. The use of sorted() makes dict {} into list [], which is worth noticing. It also turns the groups of keys and values into tuple - (key, value) format. d = {} try: l = int(input()) for i in range(0, l): ipt = input().split(' '...