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 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

1 Expert Approved Answer
Step: 1 Unlock

To solve this problem you can follow these steps 1 Split the input sentence into words 2 Convert eac... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!