Answers for "how to slipt words python using [1:1}"

8

python split sentence into words

sentence = 'Hello world a b c'
split_sentence = sentence.split(' ')
print(split_sentence)
Posted by: Guest on October-12-2020
2

split word python

# How to spit a word :

text = "Word"
text_list = list(text)
print(text_list)

# Output :
# ["W", "o", "r", "d"]
Posted by: Guest on January-30-2021

Python Answers by Framework

Browse Popular Code Answers by Language