words = []
word = input('Provide a word: ')
while word:
    words.append(word)
    word = input('Provide a word: ')
order = input('Please, choose sorting order (normal/reverse): ')
if order == 'normal':
    sorted_words = sorted(words)
elif order == 'reverse':
    sorted_words = sorted(words, reverse=True)
for word in sorted_words:
    print(word)

4dcf66c85e131736d3bc14c8fb0309a019d9dbbc
<mask token>

<mask token>
while word:
    words.append(word)
    word = input('Provide a word: ')
<mask token>
if order == 'normal':
    sorted_words = sorted(words)
elif order == 'reverse':
    sorted_words = sorted(words, reverse=True)
for word in sorted_words:
    print(word)

words = []
word = input('Provide a word: ')
while word:
    words.append(word)
    word = input('Provide a word: ')
order = input('Please, choose sorting order (normal/reverse): ')
if order == 'normal':
    sorted_words = sorted(words)
elif order == 'reverse':
    sorted_words = sorted(words, reverse=True)
for word in sorted_words:
    print(word)
