Question: I am using python and please show me the code and maybe little explanation about it. That helps me a lot. apagerdisplay file & dir.course.materials
I am using python and please show me the code and maybe little explanation about it. That helps me a lot. apagerdisplay file & dir.course.materials &file-laboasets.pdf&path. %2F - In this checkpoint all you have to do is a bit of data cleaning Write a program that reads the description of a single club. You can see that ench of the example files have a single line which contains the name of the club and the description separated with a vertical line (1) Now, write a function get-words that takes input the description part of a club- a string. Your function must construct and return a set containing all the words in the description based on the following process remove all punctuation symbols: dot, comma, parentheses and double quotes by re- placing them with a space(O) make all words lowercase e keep only words with 4 or more characters that contain nothing but letters (atr. isalpha(o will get you there). You must use a function for this part, it will beoome important for the remainder of the lab. For example, here is the set for wrpi.txt: File vrpi.txt 33 vords ('effective', "broadcast', 'local. programs', "wrpi', "located', banda' "affairs'radio", 'programing. includes", live', 'days', 'events' ". 'vatts alternative', ailes "year 'studios 'special', firat. 'loor", ' 'vide campus', 'station', experinental, 'cultural' 'ausic around' public simulcasts, 'sports'. 'range) Note: words in sets have no ordering, so the words may be ordered differeatly in your set. All we care about is that it has the same words Once done, use your function to find the et of words for some of the inpat files and print ch
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
