splitting_a_word_on_white_spaces.py


Sign up Free. Don't forget to check out our challenges, lessons, solve and learn series and more ...


Code Snippet

line="here is a sentence with a few words"
words=line.split(" ")
print(words)
                    

Try it yourself