words

Converting a String to a List of Words?

Converting a String to a List of Words? Question: 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 …

Total answers: 15