result_dict={'Allen': ['red', 'blue', 'yellow'],'Tom': ['green', 'white', 'blue'],'Andy': ['black', 'pink']} for i,c in sorted(result_dict.items()): print(f"{i}'s favorite colors are:") for v in c: print(v)