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