A sentence is split up into a list of words : String Split « String « Python






A sentence is split up into a list of words

A sentence is split up into a list of words



sentence = 'It is raining cats and dogs'
words = sentence.split()
print words

 
           
       








Related examples in the same category

1.Splitting stringsSplitting strings
2.Split a string by ','Split a string by ','
3.String splits by another string String splits by another string