Question: Could you use python 3 to solve theseThank you Question 1b: Unique Words (2 points) Write a python function unique_words which takes a string and
Question 1b: Unique Words (2 points) Write a python function unique_words which takes a string and returns a set which contains all of the words in the string. We ignore letter cases and punctuations (all letters should be converted to lower case and all punctuations are removed). For example,if the input string is "Wait, walt, vait, ny friend" then the function should return'wait,'myfriend') You should not copy the code that is already in format string into this function. Call the corresponding function instead. In [48]: def unique words(s): s-format string(s) return set(s.split)) # Your code here Pile "
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
