Curso_Intensivo_de_PYTHON/chapter_06/favorite_languages.py
2023-06-02 17:22:53 +02:00

14 lines
348 B
Python

favorite_languages = {
'jen': 'python',
'sarah': 'c',
'edward': 'ruby',
'phil': 'python',
}
friends = ['phil', 'sarah']
for name in favorite_languages.keys():
print(name.title())
if name in friends:
language = favorite_languages[name].title()
print(f"\t{name.title()}, I see you love {language}!")