There was an error while loading. Please reload this page.
1 parent 057b79e commit cbd4537Copy full SHA for cbd4537
Week 11/word-sorting.py
@@ -1,4 +1,18 @@
1
+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.
2
3
+Input Format:
4
+The first line of input contains words separated by the comma.
5
+
6
+Output Format:
7
+Print the sorted words separated by the comma.
8
9
+Example:
10
11
+Input:
12
+without,hello,bag,world
13
14
+Output:
15
+bag,hello,without,world
16
17
18
l=input().split(',')
0 commit comments