KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I'm trying to convert a string to a list of words using python. I want to take something like the following: string = 'This is a string, with words!' Then convert to something like this : list = ['This', 'is', 'a', 'string', 'with', 'words'] Notice the omission of punctuation and spaces. What would be the fastest way of going about this?
Tags (comma-separated)
Save Edits
Cancel