I was wondering if there was any way to make a for loop go through a string word by word, rather then character by character. For example,
for letter in "Hello world"
print letter
it would print out
H
e
l
l
o
etc.
I was wondering if I could make it so that it would instead print out like
Hello
World
Any help would be greatly appreciated!