You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
4
-
Suppose the following input is supplied to the program:
5
-
without,hello,bag,world
6
-
Then, the output should be:
7
-
bag,hello,without,world
3
+
## 📝 Instructions:
8
4
9
-
Hints:
10
-
In case of input data being supplied to the question, it should be assumed to be a console input.
5
+
1. Write a function `two_dimensional_list`, that accepts a comma separated sequence of words as input.
6
+
7
+
2. Print the words in a comma-separated sequence after sorting them alphabetically.
0 commit comments