Answers for "how to split string into char list"

12

how to split text into list python by characters

txt = "foobar"
print(list(txt)) # ["f", "o", "o", "b", "a", "r"]
Posted by: Guest on December-09-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 "how to split string into char list"

Python Answers by Framework

Browse Popular Code Answers by Language