Skip to content

Latest commit

 

History

History
19 lines (11 loc) · 484 Bytes

File metadata and controls

19 lines (11 loc) · 484 Bytes

026 sequence of words

📝 Instructions:

  1. Write a function sequence_of_words() that accepts a comma separated sequence of words as input and prints the words in a comma-separated sequence after sorting them alphabetically.

Example input:

sequence_of_words("without", "hello", "bag", "world")

Example output:

"bag,hello,without,world"

💡 Hints:

  • In case of input data being supplied to the question, it should be assumed to be a console input.