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   2 days ago
🌐
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
🌐
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 ...
🌐
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)
🌐
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.
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!
🌐
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.
🌐
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
🌐
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. ... Save this answer. ... Show activity on this post. ... Sign up to request clarification or add additional context in comments. ... Noo... never use eval(..)... 2017-09-02T15:01:46.427Z+00:00 ... it seems that his string contains a valid python code, so eval() should do the thing.
🌐
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!
🌐
Appdividend
appdividend.com › python-string-to-list
How to Convert String to a List in Python
December 11, 2025 - In Python, to convert a string to a list of characters, use the list(string) method. The easiest way to convert a string into a list of words (tokens) is by using string.split() method.