comma separated sequence

Anonymous
plain_text
12/23/2022 9:24 AM
420 B
19
Indexable
Write a program that accepts a comma separated sequence of words as input and prints the words in a comma-separated sequence after sorting them alphabetically.
Suppose the following input is supplied to the program:


str = "without,hello,bag,world"


Then, the output should be:
 "bag,hello,without,world"
Editor is loading...