Answers for "python split by letter"

3

how to split a word into letters in python

def split(word):
    return [char for char in word] 

word = "word"
print(split(word))
#output: ["w", "o", "r", "d"]
Posted by: Guest on February-27-2021
0

python split string on char

str = 'Python,Examples,Programs,Code,Programming'

chunks = str.split(',')
print(chunks)
Posted by: Guest on June-28-2021

Code answers related to "python split by letter"

Python Answers by Framework

Browse Popular Code Answers by Language