![regex - Python - Strip Punctuation from list of words using re.sub and string.punctuation - Stack Overflow regex - Python - Strip Punctuation from list of words using re.sub and string.punctuation - Stack Overflow](https://i.stack.imgur.com/17H7p.png)
regex - Python - Strip Punctuation from list of words using re.sub and string.punctuation - Stack Overflow
By using split in Python, how do I remove all punctuation, but not the middle words such as 'won't' or 'on-time'? a line that can remove all punctuation at one time. -
![regex - Python - Strip Punctuation from list of words using re.sub and string.punctuation - Stack Overflow regex - Python - Strip Punctuation from list of words using re.sub and string.punctuation - Stack Overflow](https://i.stack.imgur.com/y86W7.png)
regex - Python - Strip Punctuation from list of words using re.sub and string.punctuation - Stack Overflow
![SOLVED: python code (please make sure every test case is satisfied) : def q6(sentence): Assumes sentence is a string. Returns a list of the most frequent words in the sentence, where words SOLVED: python code (please make sure every test case is satisfied) : def q6(sentence): Assumes sentence is a string. Returns a list of the most frequent words in the sentence, where words](https://cdn.numerade.com/ask_images/ae86fd4c2a804189a1cff83294e4694a.jpg)