Answers for "how to seperate words in a string python"

2

how to get words from a string in python

sentence = "How are you feeling today"
sentence = sentence.split() # this returns list of words
# output = ["How", "are", "you", "feeling", "today"]
Posted by: Guest on January-30-2021
1

how to add words to a list in python

list = []
list.append("hello")
Posted by: Guest on June-30-2020

Code answers related to "how to seperate words in a string python"

Python Answers by Framework

Browse Popular Code Answers by Language