Skip to content

Commit de16793

Browse files
authored
Update README.md
1 parent 829f396 commit de16793

File tree

1 file changed

+17
-8
lines changed

1 file changed

+17
-8
lines changed
Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,19 @@
1-
# `27`Sequence of words
1+
# `27` Sequence of words
22

3-
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:
84

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.
8+
9+
## 📎 Example input:
10+
11+
```py
12+
(without,hello,bag,world)
13+
```
14+
15+
## 📎 Example output:
16+
17+
```py
18+
bag, hello, without, world
19+
```

0 commit comments

Comments
 (0)