#%%
favorite_languages = {
'jen': ['python','ruby'],
'sarah': ['c'],
'edward': ['ruby','go'],
'phil': ['python','haskell']
}
languages = ""
for name in favorite_languages :
# 每次循环都重新赋值languages
languages = favorite_languages[name]
print(languages)
for language in languages:
print('\t'+language.title())
# %%