Splitting String to List of Characters - Python Last Updated : 11 Jul, 2025 Comments Improve Suggest changes Like Article Like Report We are given a string, and our task is to split it into a list where each element is an individual character. For example, if the input string is "hello", the output should be ['h', 'e', 'l', 'l', 'o']. Let's discuss various ways to do this in Python.Using list()The simplest way to split a string into individual characters is by using the list() function. Python s = "python" # Splitting into characters res = list(s) print(res) Output['p', 'y', 't', 'h', 'o', 'n'] Explanation:list(s) converts the string into a list of characters.Each character in s becomes an individual element in result.Let's explore some more ways and see how we can split a string into a list of characters.Table of ContentUsing List ComprehensionUsing map()Using re.findall()Using List ComprehensionList comprehension provides a compact way to iterate over the string and extract characters. Python s = "python" # Splitting into characters res = [char for char in s] print(res) Output['p', 'y', 't', 'h', 'o', 'n'] Explanation:The for loop extracts each character from s into a list.This approach is useful when additional conditions or transformations are needed.Using map()map() function applies str on each character of the string and returns an iterable, which we convert to a list. Python # Initializing string s = "python" # Splitting into characters res = list(map(str, s)) print(res) Output['p', 'y', 't', 'h', 'o', 'n'] Explanation:map(str, s) processes each character individually.The result is converted to a list for easier manipulation.Using re.findall()Regular expressions can be used to match individual characters in the string. Python import re # Initializing string s = "python" # Splitting into characters res = re.findall(r'.', s) print(res) Output['p', 'y', 't', 'h', 'o', 'n'] Explanation:re.findall(r'.', s) matches each character separately.This approach is useful when additional pattern-based filtering is needed. Comment More infoAdvertise with us Next Article Split String of list on K character in Python M manjeet_04 Follow Improve Article Tags : Python Python Programs Python list-programs Python string-programs Practice Tags : python Similar Reads Split String into List of characters in Python We are given a string and our task is to split this string into a list of its individual characters, this can happen when we want to analyze or manipulate each character separately. For example, if we have a string like this: 'gfg' then the output will be ['g', 'f', 'g'].Using ListThe simplest way t 2 min read Split String into List of characters in Python We are given a string and our task is to split this string into a list of its individual characters, this can happen when we want to analyze or manipulate each character separately. For example, if we have a string like this: 'gfg' then the output will be ['g', 'f', 'g'].Using ListThe simplest way t 2 min read Split String into List of characters in Python We are given a string and our task is to split this string into a list of its individual characters, this can happen when we want to analyze or manipulate each character separately. For example, if we have a string like this: 'gfg' then the output will be ['g', 'f', 'g'].Using ListThe simplest way t 2 min read Split String of list on K character in Python In this article, we will explore various methods to split string of list on K character in Python. The simplest way to do is by using a loop and split().Using Loop and split()In this method, we'll iterate through each word in the list using for loop and split it based on given K character using spli 2 min read Split String of list on K character in Python In this article, we will explore various methods to split string of list on K character in Python. The simplest way to do is by using a loop and split().Using Loop and split()In this method, we'll iterate through each word in the list using for loop and split it based on given K character using spli 2 min read Split String of list on K character in Python In this article, we will explore various methods to split string of list on K character in Python. The simplest way to do is by using a loop and split().Using Loop and split()In this method, we'll iterate through each word in the list using for loop and split it based on given K character using spli 2 min read Like