# 创建字典result_dict,作为已记录的调查结果
result_dict = {'Allen': ['red', 'blue', 'yellow'], 'Tom': ['green', 'white', 'blue'], 'Andy': ['black', 'pink']}

for name in sorted(result_dict,reverse=False):
    print(f"{name}'s favorite colors are:")
    for color in result_dict.get(name):
        print(color)