Question: Write a Python program which consists of method get_unique() that accepts a comma separated sequence of words as input and prints the unique words in
Write a Python program which consists of method get_unique() that accepts a comma separated sequence of words as input and prints the unique words in sorted form (alphanumerically).
Expected output:
Input = red,white,pink,green,123, green, 123pink
The unique words are green, pink,red,white,123, 123pink
Please help me write the explanation in the comment box so I can learn. Thank you!
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
