Question: Please need in python 2. [20 points] Duplicate Word Removal Write a function (call it unique_words() that receives a list of words, then determines and
Please need in python
2. [20 points] Duplicate Word Removal Write a function (call it unique_words() that receives a list of words, then determines and displays in alphabetical order only the unique words. Treat uppercase and lowercase letters the same. The function should use a set to get the unique words in the list. Test your function with several sentences. Use the following sentence to test your code: text = ('this is sample text with several words' 'this is more sample text with some different words') Hints: You may want to use text.split(), word.lower(), sorted
Step by Step Solution
There are 3 Steps involved in it
To solve this problem you can follow these steps 1 Split the input sentence into words 2 Convert eac... View full answer
Get step-by-step solutions from verified subject matter experts
