words = input('Enter any number of words separated with commas: ') split_words = words.split(',') print(f'Here are the words you entered, arranged in alphabetical order: {tuple(sorted(split_words))}')