Use the list constructor:

>>> list("foobar")
['f', 'o', 'o', 'b', 'a', 'r']

list builds a new list using items obtained by iterating over the input iterable. A string is an iterable -- iterating over it yields a single character at each iteration step.

Answer from user225312 on Stack Overflow
🌐
W3Schools
w3schools.com › python › ref_string_split.asp
Python String split() Method
Remove List Duplicates Reverse ... Syllabus Python Study Plan Python Interview Q&A Python Training ... The split() method splits a string into a list....
Discussions

How to split each string into words and collects all words in a new list.
string.split() return a list or words, so if you put [s.split()] it would return a list of lists. i would try something like this: new_list = [] for line in book: for word in line.split(' '): new_list.append(word) More on reddit.com
🌐 r/learnpython
6
4
May 9, 2021
Splitting a list in sublists by values
from bisect import bisect_left def split_list(iterable, splitters): left, right = sorted(splitters) left_idx = bisect_left(iterable,left) right_idx = bisect_left(iterable,right) return [ iterable[:left_idx], iterable[left_idx:right_idx], iterable[right_idx:]] As a bonus this works even if the splitter is not in the list. More on reddit.com
🌐 r/learnpython
8
3
November 12, 2015
Split a list into sublists using an array of indexes
Still using a for loop, but just one. Not sure if it'll be efficient enough, but here's my go at it. lists = [[0], [1], [2], [3], [4]] vals = [9, 8, 7, 6, 5] inds = [2, 1, 3, 2, 0] vals_and_indexes = zip(vals, inds) for val,index in vals_and_indexes: lists[index].append(val) print(lists) # [[0, 5], [1, 8], [2, 9, 6], [3, 7], [4]] More on reddit.com
🌐 r/learnpython
6
0
August 20, 2019
Splitting an input sentence into a list
Please format your code for reddit or use a site like pastebin. Your code is very hard to read and impossible to test otherwise. split(" ") returns the split version, it does not split in place. So you need to assign the returned value to a variable if you want to use it. Try: split_sentence = sentencestring.split(" ") print(split_sentence) More on reddit.com
🌐 r/learnpython
7
3
August 5, 2015
People also ask

Q1. How to split a string into a list in Python?
You can split a string into a list using the split() method, the splitlines() method or the re.split() method from the regular expressions module.
🌐
intellipaat.com
intellipaat.com › home › blog › how to split a string into a list in python
How to Split a String into a List in Python - Intellipaat
Q10. How to split text file into list Python or split string into words?
To split a text file into a list, use [line.strip() for line in open(‘file.txt’)]. To split a string into words, use s.split() — it breaks on whitespace by default.
🌐
intellipaat.com
intellipaat.com › home › blog › how to split a string into a list in python
How to Split a String into a List in Python - Intellipaat
Q6. How to split a string into characters in Python?
Split into characters: Convert the string to a list using list(string) for a character-wise split.
🌐
intellipaat.com
intellipaat.com › home › blog › how to split a string into a list in python
How to Split a String into a List in Python - Intellipaat
🌐
GeeksforGeeks
geeksforgeeks.org › python › python-split-string-into-list-of-characters
Split String into List of Characters in Python - GeeksforGeeks
Explanation: [char for char in s] loops through each character in s and places each char into the list, creating a list of all characters. The unpacking operator * can be used to split a string into a list of characters in a single line.
Published: November 27, 2025
🌐
freeCodeCamp
freecodecamp.org › news › python-split-string-how-to-split-a-string-into-a-list-or-array-in-python
Python Split String – How to Split a String into a List or Array in Python
April 4, 2023 - In this example, we split the string "hello\nworld" into a list of two elements, "hello" and "world", using the splitlines() method. The re module in Python provides a powerful way to split strings based on regular expressions.
🌐
Mimo
mimo.org › glossary › python › string-split-method
Learn Python's String Split Method, Simplify Text Processing
To split a string into a list of substrings, you use the built-in string method .split(). Its behavior depends on the arguments you provide. ... Become a Python developer.
🌐
Stack Abuse
stackabuse.com › python-split-string-into-list-with-split
Python: Split String into List with split()
March 28, 2023 - By default, the delimiter is set to a whitespace - so if you omit the delimiter argument, your string will be split on each whitespace. Let's take a look at the behavior of the split() method: string = "Age,University,Name,Grades" lst = string.split(',') print(lst) print('Element types:', ...
Find elsewhere
🌐
DevGenius
blog.devgenius.io › transforming-strings-into-lists-2fdbbd697ad9
Transforming Strings into Lists. A guide to splitting in python | by A.I Hub | Dev Genius
December 24, 2024 - If we have a multiline string and ... the separator or we can use the splitlines method. The method splitlines() splits a multiline string into a list of single-line strings....
🌐
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']

🌐
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 - Here, we’ve added (?:[-']\w+)* to the regular expression, which allows characters after the first one in the word to be apostrophes or hyphens. Our code now splits the sentence into a list of words, preserving words with apostrophes and hyphens, while discarding commas, periods, and other sentence-level punctuation.
🌐
GeeksforGeeks
geeksforgeeks.org › python › python-string-split
Python split() Method - GeeksforGeeks
July 1, 2026 - DSA Python · Data Science · NumPy · Pandas · Practice · Django · Flask · Last Updated : 1 Jul, 2026 · split() method is used to divide a string into multiple parts based on a specified separator.
🌐
Educative
educative.io › answers › how-to-split-a-python-string-into-a-list
How to split a Python string into a list
The split() method​ in Python breaks a string down into a list of substrings using a specified separator.
🌐
Board Infinity
boardinfinity.com › blog › split-string-into-list-of-characters-in-python
Split String into List of Characters in Python
August 13, 2025 - Maxsplit parameter : The function will split the string basis into the most possible occurrences using the maxsplit parameter, which is a number. Return: After breaking or splitting the primary string, the split function goes back to the list of strings.
🌐
ARCsoft
arcsoft.uvic.ca › log › 2024-03-05-splitting-strings-in-python
Splitting a string list in Python • ARCsoft
At least one answer on Stack Overflow states that the list comprehension is more Pythonic. And a comment suggests an easy way to rid of extra whitespace is to use strip(). Is that better or worse than my regular expression? print("Splitting on ',' and stripping whitespace as part of comprehension: ", [ x.strip() for x in mystr.split(',') if x.strip() ])
🌐
GeeksforGeeks
geeksforgeeks.org › python › split-elements-of-a-list-in-python
Split Elements of a List in Python - GeeksforGeeks
July 23, 2025 - Using map() is useful if we're ... map() function applies the given function to each element of the list a. The lambda function splits each string at the comma and selects the first part. And then the list() function is used to convert the result from map() into a list...
🌐
Pluralsight
pluralsight.com › blog › software development
6 Best Methods for Python String to List Conversion | Pluralsight
Let’s see how it works. x = "plural ... ', 's', 'i', 'g', 'h', 't'] The built-in split() method takes the delimiter as an argument and converts the string to a list based on the specified delimiter....
🌐
Enki
enki.com › post › how-to-split-strings-in-python
Enki | Blog - How to Split Strings in Python
String splitting in Python revolves around the split() method. It's a versatile function that takes a string and divides it into a list of substrings, making it suitable for all sorts of data processing tasks.
🌐
GeeksforGeeks
geeksforgeeks.org › python › python-program-convert-string-list
Convert String to a List in Python - GeeksforGeeks
Explanation: Since no separator is specified, split() separates the string at spaces and returns a list containing each word. list() function converts a string into a list by treating every character as a separate element.
Published: July 16, 2026
🌐
Real Python
realpython.com › python-split-string
How to Split a String in Python – Real Python
October 22, 2025 - By passing a comma (",") as the argument to sep, you instruct Python to use commas as the delimiter for splitting. As a result, .split() separates the string into a list of individual names.
🌐
Programiz
programiz.com › python-programming › methods › string › split
Python String split()
The split() method returns a list of strings. text= 'Split this string' # splits using space print(text.split()) grocery = 'Milk, Chicken, Bread' # splits using , print(grocery.split(', ')) # splits using : # doesn't split as grocery doesn't have : print(grocery.split(':')) ... grocery.split(', ...
🌐
Intellipaat
intellipaat.com › home › blog › how to split a string into a list in python
How to Split a String into a List in Python - Intellipaat
February 3, 2026 - Explanation: Here, we split the string text1 into a list of words using the split() method with the separator as a comma (,). The second string, text2, was split with a maxsplit parameter of 3. The splitlines() method is used to split the string ...