"""
Lecture 11 - You Try: sort_words
Returns a new list of words sorted alphabetically.
"""


def sort_words(sen):
    """
    - sen is a string representing a sentence
    - Returns a NEW list containing all the words in sen
      but sorted in alphabetical order.
    """
    words = sen.split()
    return sorted(words)


# Test calls
print(sort_words("look at this photograph"))
# ['at', 'look', 'photograph', 'this']

print(sort_words("banana apple cherry"))
# ['apple', 'banana', 'cherry']
