Question: python need answer 1: Write a function uniqueWords () that takes a list of sentences (strings). You will return a list of unique words found

fourth assignment section. You should save the template file provided and then modify that file by adding the bodies for the functions. When you do, make sure to remove the placeholder pass statements that are currently there. You must also write doc strings for every function. A submission without doc strings will not earn full credit. 1. Write a function unique Words that takes a list of sentences (strings). You will return a list of unique words found across all the sentences. Case needs to be ignored. The following shows several sample runs of the function: >>> uniqueWords (t'this is a test', 'not too hard a problem', 'could be on a test, i like the word test)) t'this', 'is', 'a', 'test', 'not', 'to, 'hard', 'problem, 'could', 'be', 'on '1', 'like', 'the', 'word'] >>> unique words (1) >>> uniquewords (Can you see', 'See you can, "You can see']) 'can' you', 'see'] 2. Write a function hasLetters) takes a list of strings and letters as parameter. Returns a True if any of the words in the list contain the letters. False if it doesn't. The following shows several sample runs of the function: >>> hasLetters (['final', 'best', 'word', 'find' ], 'in') True >>> hasLetters ('final', 'best', 'word', 'find' ], 'zzz') False >>> hasLetters ([], 'a') False >>> hasLetters (I' Zoko', 'Anthony', 'test'], '20') . True 8:22 ALTE Assignment 4 1of 5 TN tnaimai 1 Per te lateste 2.3.4.5.6.7. Pese armed by: 05 50 297) E
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
