Answers for "how to split a word into separate characters python"

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
1

how to split word in python

text= "I am Batman"
splitted_text= text.split()

Print(splitted_text)
Posted by: Guest on September-02-2020

Code answers related to "how to split a word into separate characters python"

Python Answers by Framework

Browse Popular Code Answers by Language