Answers for "how to split a phrase in python"

7

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
1

python split every character in string

def split(word): 
    return [char for char in word]
Posted by: Guest on September-21-2020

Code answers related to "how to split a phrase in python"

Python Answers by Framework

Browse Popular Code Answers by Language