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!']
Answer from gilgamar on Stack Overflow
🌐
GeeksforGeeks
geeksforgeeks.org › python › python-program-convert-string-list
Convert String to a List in Python - GeeksforGeeks
Now, let's explore different methods to convert a string into a list in Python. split() method converts a string into a list by splitting it at a specified separator. If no separator is provided, it splits the string wherever it finds whitespace.
Published   December 20, 2017
Discussions

python 3.x - List of strings to list of words - Stack Overflow
So, I am trying to figure out the best way to go about taking a list of strings and converting it into a list of words. I also want to strip all the punctuation from the string. My thought process ... More on stackoverflow.com
🌐 stackoverflow.com
python - String to List of words - Stack Overflow
I have a string a = '["Internet Software","IoT"]'. It is not a list. It is a string of length 27. I want to convert this into a list containing elements : Internet Software and IoT. How do I do so? More on stackoverflow.com
🌐 stackoverflow.com
python - convert a word to a list of chars - Stack Overflow
I can split a sentence into individual words like so: string = 'This is a string, with words!' string.split(" ") ['This', 'is', 'a', 'string,', 'with', 'words!'] But I don't know how to split a word More on stackoverflow.com
🌐 stackoverflow.com
python - How do I split a string into a list of words? - Stack Overflow
How do I split a sentence and store each word in a list? e.g. "these are words" ⟶ ["these", "are", "words"] To split on other delimiters, see Split a str... More on stackoverflow.com
🌐 stackoverflow.com
🌐
TutorialsPoint
tutorialspoint.com › article › How-to-convert-a-string-to-a-list-of-words-in-python
How to convert a string to a list of words in python?
May 20, 2025 - Python str.split() method accepts a separator as a parameter, splits the string at the specified separator, and returns the result as a list. If we use the split() method without any arguments, it splits the string at every whitespace character ...
🌐
DigitalOcean
digitalocean.com › community › tutorials › python-convert-string-to-list
How To Convert a String to a List in Python | DigitalOcean
April 9, 2026 - Let’s look at a simple example where we want to convert a string to list of words i.e. split it with the separator as white spaces. s = 'Welcome To DigitalOcean' print(f'List of Words ={s.split()}') Output: List of Words =['Welcome', 'To', 'DigitalOcean'] If you are not familiar with f-prefixed string formatting, please read f-strings in Python
🌐
freeCodeCamp
freecodecamp.org › news › python-string-to-array-how-to-convert-text-to-a-list
Python String to Array – How to Convert Text to a List
February 21, 2022 - It defines how many elements of the list will get split and turned into individual list items. By default, it is set to -1, which means all elements that make up the string will be split. But we can change the value to a specific number. To split only two words and not every word, we set maxsplit to two: current_routine = "I enjoy learning Python everyday" current_routine_list = current_routine.split(maxsplit=2) print(current_routine_list) #output #['I', 'enjoy', 'learning Python everyday']
🌐
w3resource
w3resource.com › python-exercises › string › python-data-type-string-exercise-46.php
Python: Convert a given string into a list of words - w3resource
June 12, 2025 - # The 'pattern' parameter defines a regular expression pattern for matching substrings. def string_to_list(s, pattern='[a-zA-Z-]+'): # Use the 're.findall' function to find all substrings in 's' that match the 'pattern'. return re.findall(pattern, s) # Call the 'string_to_list' function with different input strings and 'pattern' values. print(string_to_list('The quick brown fox jumps over the lazy dog.')) print(string_to_list('Python, JavaScript & C++')) print(string_to_list('build -q --out one-item', r'\b[a-zA-Z-]+\b')) ... ['The', 'quick', 'brown', 'fox', 'jumps', 'over', 'the', 'lazy', 'dog'] ['Python', 'JavaScript', 'C'] ['build', 'q', 'out', 'one-item'] ... Write a Python program to split a sentence into a list of words using the split() method. Write a Python program to use regular expressions to convert a string into a list of words, ignoring punctuation.
🌐
Stack Overflow
stackoverflow.com › questions › 65682633 › list-of-strings-to-list-of-words
python 3.x - List of strings to list of words - Stack Overflow
Second for-loop appends or adds all the split words to list_of_words array. list_of_strings = ['This is string one.', 'This is string two.', 'This is string three.'] list_of_words = list() for line in list_of_strings: word = line.split() for i in word: list_of_words.append(i) print(list_of_words)
Find elsewhere
🌐
Python Principles
pythonprinciples.com › blog › python-string-to-list
Convert a string to a list in Python – Python Principles
>>> sentence = "this is an example" >>> for word in sentence.split(): ... print(word) ... this is an example · We have written more about how to split a string in a different post. Sometimes, you need a list where each element is a letter from your string. In this case, use the list() built-in function: ... The fastest way to learn programming is with lots of practice. Learn a programming concept, then write code to test your understanding and make it stick. Try our online interactive Python course today—it's free!
🌐
Sentry
sentry.io › sentry answers › python › split a string into a list of words in python
Split a string into a list of words in Python | Sentry
June 15, 2024 - sentence = 'Jackdaws love my big sphinx of quartz.' wordlist = sentence.split() print(wordlist) # will print ['Jackdaws', 'love', 'my', 'big', 'sphinx', 'of', 'quartz.'] The split method takes an optional sep argument, allowing us to specify a substring to treat as the separator between items in our list. If no separator is specified, as in the above example, the string is split on each run of one or more whitespace characters (spaces, tabs, and newlines). Splitting the string on whitespace characters preserves sentence punctuation such as periods and commas, like quartz.
🌐
Flexiple
flexiple.com › python › convert-string-to-list-in-python
Convert String to List in Python - Flexiple - Flexiple
Divide the string into a list of substrings based on a specified separator to convert a string to a list in Python using the split() method. The split() method takes a single argument: the delimiter, which is a character that defines the boundary ...
🌐
w3resource
w3resource.com › python-exercises › basic › python-basic-1-exercise-6.php
Python: Convert the string to a list and print all the words and their frequencies - w3resource
May 24, 2025 - Python Exercises, Practice and Solution: Write a Python program that prints long text, converts it to a list, and prints all the words and the frequency of each word.
🌐
Centron
centron.de › startseite › python convert string to list
Python Convert String to List
February 6, 2025 - We can convert a string to list in Python using split() function. Python String split() function syntax is: ... Let’s look at a simple example where we want to convert a string to list of words i.e.
🌐
Stack Overflow
stackoverflow.com › questions › 46015075 › string-to-list-of-words
python - String to List of words - Stack Overflow
I want to convert this into a list containing elements : Internet Software and IoT. ... You can now choose to sort by Trending, which boosts votes that have happened recently, helping to surface more up-to-date answers. Trending is based off of the highest score sort and falls back to it if no posts are trending. Try it Dismiss ... Noo... never use eval(..)... ... it seems that his string contains a valid python code, so eval() should do the thing.
🌐
Quora
quora.com › How-do-I-turn-a-string-into-a-list-of-words
How to turn a string into a list of words - Quora
Answer (1 of 5): You can use a method of String class named “split(String regex)” to turn a string int a list of words. Here regex is a regular expression to specify the spliting point or character in the given string. the following code turn a string into list of words.
🌐
GeeksforGeeks
geeksforgeeks.org › python-spilt-a-sentence-into-list-of-words
Split a sentence into list of words in Python - GeeksforGeeks
December 4, 2024 - Printing the last word in a sentence involves extracting the final word , often done by splitting the sentence into words or traversing the string from the end.Using split() methodsplit() method divides the string into words using spaces, making ...
🌐
EDUCBA
educba.com › home › software development › software development tutorials › python tutorial › string to list in python
Top 10 methods to convert a string into list in Python
December 8, 2023 - phrase = "Coding is fun" character_list = [char for word in phrase.split() for char in word] print(character_list) It will give a list of symbols, unlike the above example, You can use slicing to convert a string into a list. It iterates data according to our needs. Colon(:) is used to cut anything in Python.
Address   Unit no. 202, Jay Antariksh Bldg, Makwana Road, Marol, Andheri (East),, 400059, Mumbai
🌐
Python Guides
pythonguides.com › python-string-to-list
How To Convert String To List In Python?
April 3, 2025 - Learn how to convert a string to a list in Python using `split()`, `list()`, or list comprehensions. Handle different delimiters and formats with ease!
🌐
Reddit
reddit.com › r/learnpython › how to split each string into words and collects all words in a new list.
r/learnpython on Reddit: How to split each string into words and collects all words in a new list.
May 9, 2021 -

I'm working on a book I've downloaded from project Guttenberg and after doing some data cleaning I have ended up with a list of strings. Next I should split each string into words and collect all the words in a new list.

I have tried to use the split commando but somehow I end up with transforming each string into a list instead of a a string.

I'm sorry if I'm being vague. Please let me know if I should provide more infromation...

I have created the following function.

def splitter():

wordList = [s.split(" ") for s in book]

return wordList

book = splitter()

Somehow I end up with the following output when I type book[0] into the console:

['the',

'history',

'of',

'australian',

'exploration',

'from',

'1788',

'to',

'1888']

Instead of splitting the string and ending up with a list of strings I have created a list of lists.

What I want to end up with is:

In[] book[0]

Out[] the

and

in[] book[:9]

['the',

'history',

'of',

'australian',

'exploration',

'from',

'1788',

'to',

'1888']