Answers for "how to seperate each word in string in python"

1

python split string every character

s = "foobar"
s = list(s)
print(s)

<output: ['f', 'o', 'o', 'b', 'a', 'r']>
Posted by: Guest on September-25-2021
4

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 seperate each word in string in python"

Python Answers by Framework

Browse Popular Code Answers by Language