<filename>favoriteloop.py
#!/usr/bin/python3.7

favorite_languages = {'jen': 'python', 'sarah': 'c', 'edward': 'ruby', 'phil': 'python'}

for name in sorted(favorite_languages.keys()):
    print(f"\n{name.try:
        pass
    except expression as identifier:
        pass}")
<filename>favoriteloop.py
#!/usr/bin/python3.7

favorite_languages = {'jen': 'python', 'sarah': 'c', 'edward': 'ruby', 'phil': 'python'}

for name in sorted(favorite_languages.keys()):
    print(f"\n{name.try:
        pass
    except expression as identifier:
        pass}")
#!/usr/bin/python3.7