Write a program that prints the words in a comma-separated sequence after sorting them alphabetically.
Topic: Write a program that prints the words in a comma-separated sequence after sorting them alphabetically.
Solution
items=[x for x in input().split(',')] items.sort() print(','.join(items))
List all Python Programs