SyntaxFix
Write A Post
Hire A Developer
Questions
I think this is the simplest way for anyone else stumbling on this post given the late response:
>>> string = 'This is a string, with words!' >>> string.split() ['This', 'is', 'a', 'string,', 'with', 'words!']